Forum Moderators: coopster
I'm a newbie, and basically designed my site through trial and error, and have no real training (and sometimes 'understanding' of what I'm actually doing)...
But I am trying to create a form that sends info to me - I am 50% successful.
When people use this form, I have it set up so that the "name", "e-mail", "quantity" and "special instructions" are e-mailed to me.
I can't figure out how to get the radio buttons to work though, so their results are mailed to me. Is there an easy newbie answer (or some code you could post) that would get me around this? Or maybe a place to direct me to learn what I need? Or am I over my head being a newbie?
I also would love to see if I can get the "browse" section to actually attach the file in my e-mail, as an e-mail attachment?
When the submit button is pressed, tellusphoto.php3 is called. I removed all the bad code in tellusphoto.php3, so all I have is what works... (sloppy, I'm sure):
_________________________________________
<?
PRINT "<center><FONT SIZE=-1 face=verdana>"; PRINT "Your information has been sent to us. You will be contacted soon.
";
PRINT "<br><br>";
PRINT "</center><p><center><TABLE border=0 width=500";
PRINT "cellspacing=0 cellpadding=7>"; PRINT "<TR><TD><FONT SIZE=-1 face=verdana>"; PRINT "";
PRINT "$status "; PRINT "";
PRINT "";
PRINT "<center><b>CLICK BACK ON YOUR BROWSER</b> to return to the home page.";
PRINT "</FONT></TD></TR></TABLE></center>";
$hdr = "From: \"8x10form@example.com\" <8x10form@example.com>";
mail("$hdr", "me@example.com", "$name just used the 8x10 form, email is $email , quantity is $quantity.\n\n $message .");
?>
______________________________________
what other info can I provide you?
I hope someone can help, if not, thanks for reading this question :) Feel free to test the form. just write TEST in the special instructions so I know it's from you!
sincerely,
Bill
[edited by: jatar_k at 6:15 pm (utc) on April 26, 2004]
[edit reason] no personal urls thanks [/edit]
If you have a radio, for example like this:
Canada : <input type="radio" name="country" value="canada"><br>
US : <input type="radio" name="country" value="us"><br>
France : <input type="radio" name="country" value="France">
When the form is uploaded, the value of $_POST['country'] (or $_GET['country'], depending on the method) will be the radio selected. For example, if I put my dot next to canada, $_POST['country'] will be 'Canada'.
A radio can have only one value seleced. For each option, you add an input type radio with the same name but a different value.
Does that answer your question?