Jump to content

simple radio button mailer help! please


ball420

Recommended Posts

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 = "[email protected]"; 
$subject = 'coming home' . $subject ;

  }
  
  
   mail($to,
        $subject,
        $body);
        
header('Location: nextstep.php');



exit; 
?>

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/72002-simple-radio-button-mailer-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.