First off... heres the URL that im working from so you can see what im doing : [a href=\"http://members.lycos.co.uk/cmbtest/\" target=\"_blank\"]MyTestSite[/a]
If your navigate to the "CV" section, and click on the Forms link.... you will find the form im constructing.
Now, all this form has to do is send the submitted data to me, and, it does this perfectly well ... for the text fields.
the radio buttons (and dropdown) do not send the information that is selected... the best ive managed is a named but empty field in the submitted mail.
I think i may be missing something quite fundemental, and i'm quite frustrated that the past 6 hours havnt manage to reveal the answer to me [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]
Ok, heres some of my code, i'm going to show you the code that effects the "sex field" as its a decent example to work with ;
This part defines the radio buttons themselves (i figured this out myself, so there may be a better way)
<b>$your_sex:</b><br>\n <input type=\"radio\" name=$your_sex value=\"male\">Male <input type=\"radio\" name=$your_sex value=\"female\">Female <br><br>\n
basically Html... i'm not sure about the "name" parameter to be honest, and think this whole post may turn out to be one problem after another.... i apoligise in advance.
This next part is left over from when i had the "sex" field as a text input, but, now it's changed to radio buttons im not sure what, if anything i need to do with it;
This next part processes the form (or it will one day [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] ):
$msg = "<font face=\"arial\" size=\"2\"><b>$your_sex:</b> $_POST[male]\n<br>";mail($recipent);[/code]
Now, i have tried various things... including playing with if statement (im not very good at this) and ive had no success.... the best i manage to get is and e-mail title of "YOUR SEX = BLANK".
I'm pretty sure i know what i need to do..... i need to get the form to recognise the radio buttons, and identify the one that is selected. Then i need to get the script to process the information and send it in the correct format.
Problem is, i dont know how to do this,
I'm gonna carry on tryin to get this figured out.... but any help in any shape or form (Except Flames) is greatly appreciated.
I dont want you to do it for me.... i just need some help.