scoobs001 Posted October 8, 2007 Share Posted October 8, 2007 Hiya folks, I'm making a wee website for myself, but i'm no expert on PHP, I have got most things working apart from this, I have a HTML form, that uses a PHP file to proccess the details and upload an image and save it to my server, I got the code from a free thing and edited it to suit my needs, What i am stuck on is, When the user submits the forum, i recieve an email with the details and the link to the image on my server, Here is an example. Name: Scott Address: Address here, Instructions:instructions for picture here, E-mail: scoobs001@gmail.com Type: Image upload Path: http://www.digiars.co.uk/uploads/alloy-2.jpg I have a radio group, named "type" ( as in the email above, there is no data submitted, ie, I cannot get it to submit which radio button the user has selected, its just blank. This is the part of the form with the radio group name is all the same, just the value is different which i believe is correct. <input type="radio" name="type" value="Cartoon" /> </div></td> <td><div align="center"> <input type="radio" name="type" value="Caricature" /> </div></td> <td><div align="center"> <input type="radio" name="type" value="Standard" /> now for the bit i dont understand, My php file recieves the variables? like this, (i thn=ink this is it just renaming them?) an example of the name field. // Receiving variables @$Name = addslashes($_POST['Name']); Then post it into the email like this below, $pfw_message = "Name: $Name\n" . "Address: $address\n" . "Instructions: $instructions\n" I was able to make new text boxes that work, but i cant ger the radio group to work, I tried the listvalue (?) command or something, but just not sure how to recieve it and then post it into the email that is automaticly sent out. I hope this post makes some sence to someone, cause its all jibber jabber to me!, but i do try Quote Link to comment https://forums.phpfreaks.com/topic/72297-php-forum-processing-help/ Share on other sites More sharing options...
haaglin Posted October 8, 2007 Share Posted October 8, 2007 The name of the radio buttons is "type", not "Name". Change // Receiving variables @$Name = addslashes($_POST['Name']); to this: // Receiving variables $Name = addslashes($_POST['type']); Quote Link to comment https://forums.phpfreaks.com/topic/72297-php-forum-processing-help/#findComment-364557 Share on other sites More sharing options...
scoobs001 Posted October 8, 2007 Author Share Posted October 8, 2007 I just posted up the name one instead of the type one, What you mentioned i already had. Still fiddling with no avail. Quote Link to comment https://forums.phpfreaks.com/topic/72297-php-forum-processing-help/#findComment-364570 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.