• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

PHP formmail question

P

ProtocolX

Guest
#1
Yea, can I get php coding existence for a formmail script? Heres the problem:

At this page, when people fill out the info and click submit the information is supposed to be sent to the email, but for some reason only the info in the text fields gets sent and the radio button info doesn't get sent to the email. Can someone look at this PHP code and give me a revised working one? Many thanks to whoever does it... I can't find out whats wrong <_<
 

Khayman

I'm sorry Hal...
Political User
#2
The names for your radio buttons need to be all the same for each group of them then you assign a different value to them

for example
Code:
<b>How many times a day would you come?</b>:<br>
<input type=radio class=form name="howmany" value=1>Once<br>
<input type=radio class=form name="howmany" value=2>2 - 5 Times a Day<br>
<input type=radio class=form name="howmany" value=3>6 - 10 Times a Day<br>
<input type=radio class=form name="howmany" value=4>All the Time! (Whenever Possible).<p>
then when you do
Code:
How Many Times a Day:\t$howmany\n
in your survey.php, it will return one of the above values
 

Members online

No members online now.

Latest posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,014
Latest member
sanoravies