ball420 Posted October 5, 2007 Share Posted October 5, 2007 for some reason when i click submit it does nothing it is set to talk to mailer.php when clicked and then lead to nextstep.php i have gone over these pages a hundred times with no luck please help.thanks for the replies. here is the html <form method="post" action="mailer.php"> <p> <label> Song name one <span class="style1">.......... </span> <input type="radio" name="song1" value="1" /> 1</label> <label> <input type="radio" name="song1" value="2" /> 2</label> <label> <input type="radio" name="song1" value="3" /> 3</label> <label> <input type="radio" name="song1" value="4" /> 4</label> <label> <input type="radio" name="song1" value="5" /> 5</label> </p> </form></td> <td> </td> </tr> <tr> <td height="319"> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td height="24"> </td> <td> </td> <td valign="top"><input type="submit" value="submit" name="submit"> here is the php code <?php if(isset($_POST['submit'])) { $nextstep = "nextstep.php"; $song1 = $_POST['song1']; $body = " $song1 /n" ; } $to = "me@yourmom.com"; $subject = 'coming home' . $subject ; } mail($to, $subject, $body); header('Location: nextstep.php'); exit; ?> Quote Link to comment https://forums.phpfreaks.com/topic/72002-simple-radio-button-mailer-help-please/ Share on other sites More sharing options...
MmmVomit Posted October 5, 2007 Share Posted October 5, 2007 The submit button is not part of the form. Move the closing form tag to after the submit button. Quote Link to comment https://forums.phpfreaks.com/topic/72002-simple-radio-button-mailer-help-please/#findComment-362721 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.