Post Reply 
php and html help
need some help with php and html forms
Author Message
deathmock5
Where is your god now?

Posts: 141.2188
Threads: 19
Joined: 6th Sep 2009
Reputation: 3.62383
E-Pigs: 4.4998
Offline
Post: #1
php and html help
ok im new to php and the form tag...
iv writen a little sometheing but i can't get the damn thing to work....

anyone wana help me? ifso ill upload the files

[Image: deathmock5.png][Image: deathmock5.png][Image: xdeathmockx.jpg]
10/12/2009 10:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
MysterySword
Omnipotent Presence

Posts: 396.4394
Threads: 29
Joined: 19th Oct 2008
Reputation: 4.35811
E-Pigs: 38.0895
Offline
Post: #2
RE: php and html help
you mean this?
<?php (or <? can be used)
and
?>

Well, upload the files. I'll see what I can do to help...
(This post was last modified: 10/12/2009 11:21 PM by MysterySword.)
10/12/2009 11:20 PM
Find all posts by this user Quote this message in a reply
deathmock5
Where is your god now?

Posts: 141.2188
Threads: 19
Joined: 6th Sep 2009
Reputation: 3.62383
E-Pigs: 4.4998
Offline
Post: #3
RE: php and html help
ok its a simple form to be made into an email and sent.

i did not make the html page somone else did i tryed to clean it up and add a real capcha, he was useing an img as a capcha

i can't get my apachy to work either


Attached File(s)
.rar  anoying bs.rar (Size: 5.81 KB / Downloads: 372)

[Image: deathmock5.png][Image: deathmock5.png][Image: xdeathmockx.jpg]
(This post was last modified: 10/12/2009 11:36 PM by deathmock5.)
10/12/2009 11:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
MysterySword
Omnipotent Presence

Posts: 396.4394
Threads: 29
Joined: 19th Oct 2008
Reputation: 4.35811
E-Pigs: 38.0895
Offline
Post: #4
RE: php and html help
Hmm... I can't seem to pinpoint the problem. I've never worked with capachas, so I'm not entirely sure of the workings.
10/12/2009 11:46 PM
Find all posts by this user Quote this message in a reply
deathmock5
Where is your god now?

Posts: 141.2188
Threads: 19
Joined: 6th Sep 2009
Reputation: 3.62383
E-Pigs: 4.4998
Offline
Post: #5
RE: php and html help
i think that i have no idea what the fudge im doing...

im trying to test the thing. for all i kno it proabaly works and im stupid for trying to open it from my desktop into firefox...

i feal stupid now...

mby i should start from the beging, like trying to make my own server off my computer

[Image: deathmock5.png][Image: deathmock5.png][Image: xdeathmockx.jpg]
11/12/2009 12:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
S7*
Sweet Dreams

Posts: 16,689.4373
Threads: 1,056
Joined: 3rd Apr 2007
Reputation: 14.29926
E-Pigs: 383.2289
Offline
Post: #6
RE: php and html help
loaded it up on my WAMP, but I don't have Sendmail set up properly so I can't test the sending.

From what the code shows though, I'd imagine this would get somewhere on a proper server with Sendmail set up properly.
11/12/2009 03:00 AM
Find all posts by this user Quote this message in a reply
deathmock5
Where is your god now?

Posts: 141.2188
Threads: 19
Joined: 6th Sep 2009
Reputation: 3.62383
E-Pigs: 4.4998
Offline
Post: #7
RE: php and html help
ok i upladed it to a host heres the link the cappcha and everyhting works fine excep the sendmail keeps giving me a syntax error... ideas?
http://www.ellet.org/stevetest/registration.htm
its conected to my email so type anythign you want in the boxes do the capcha then submit it gives me
Parse error: syntax error, unexpected ';' in /home4/onezerho/public_html/ellet/stevetest/sendmail.php on line 56
there is no ; on line 56.... even when i add one it gives me the same error
php is pissing me off

[Image: deathmock5.png][Image: deathmock5.png][Image: xdeathmockx.jpg]
11/12/2009 12:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #8
RE: php and html help
I'm pretty sure that the mail() function doesn't accept so many parameters.
Build a message string and send that.

Can't seem to find the syntax error from a quick glance though.
11/12/2009 05:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
deathmock5
Where is your god now?

Posts: 141.2188
Threads: 19
Joined: 6th Sep 2009
Reputation: 3.62383
E-Pigs: 4.4998
Offline
Post: #9
RE: php and html help
ZiNgA BuRgA Wrote:I'm pretty sure that the mail() function doesn't accept so many parameters.
Build a message string and send that.

Can't seem to find the syntax error from a quick glance though.

and um... er.... how the fudge would i do that? (knows spoon about php)

i could prablay figure it out if i need a example

[Image: deathmock5.png][Image: deathmock5.png][Image: xdeathmockx.jpg]
11/12/2009 10:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #10
RE: php and html help
Try replacing the mail call with this:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  mail( "bwilla@yahoo.com", "New Registration from $name", <<<END
From: $email
Name: $name
Email: $email
School: $school
Address: $address
City: $city
Zip code: $
Phone number: $
School information
School address: $saddress
School city: $scity
School zip: $szip
Send all mail to: $maill
Coach information
Head coach: $hc
phone: $hcp
Varsity: $va
phone: $vap
JV coach: $jv
phone: $jvp
FR coach: $fr
number: $frp
END;
);

11/12/2009 11:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: