Jump to content


Multiple Radioboxes in Forms


3 replies to this topic

#1 _*♣Mike♣_*

  • Guests

Posted 27 August 2007 - 01:29 PM

I never thought of this. How do you create a form in PHP with multiple radiobox rows.

For example

FORM 1
Are you male [yes] [no]
Do you like pixel2life [yes] [no]


And once they press submit, you get an email with 2 rows of information, one for the first question, and one for the second question.

Whenever I do it, I only get 1 row of information and the radioboxes act as ONE selection since its in the same form.

do you know?

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 27 August 2007 - 02:25 PM

Give the radio buttons two separate names. If you've done that and it hasn't worked post the code as that if how it is done usually.

Edited by Matthew., 27 August 2007 - 02:25 PM.


#3 _*♣Mike♣_*

  • Guests

Posted 27 August 2007 - 04:37 PM

I got it to work by doing that. Now I have a different problem. One of my clients is on a windows server and doesnt use the mail function properly. It uses phpmailer. I dont know how phpmailer works gah.

#4 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 27 August 2007 - 09:36 PM

Use Google, and read the comments for the mail() function on php.net.

mail() is a common function to have problems with... I just recently got mine working with my SMTP server on my laptop the other day. :lol:

Most hosts disable it for one reason or another, and other things...

Anyways, yeah, I'm sure this phpmailer has documentation you can look at.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users