i have a registration form which code are below

  <table width="350" border="0" align="center" cellpadding="0" cellspacing="0">
 <td><form name="form1" method="post" action="user_reg_get.php">
 <table width="100%" border="0" cellspacing="4" cellpadding="0">
 <td colspan="3"><strong>Sign up</strong></td>
 <td width="76">Name</td>
 <td width="3">:</td>
 <td width="305"><input name="name" type="text" id="name" size="30"></td>
 <td><input name="email" type="text" id="email" size="30"></td>
 <td><input name="pass" type="text" id="pass" size="30"></td>
 <td><input name="birth" type="text" id="birth" size="30"></td>
<input type="radio" name="sex" onclick="myFunction(this.value)" value="Male">Male
<input type="radio" name="sex" onclick="myFunction(this.value)" value="Female">Female
 <td> </td>
 <td> </td>
 <td><input type="submit" name="Submit" value="Submit">  
 <input type="reset" name="Reset" value="Reset"></td>


and form action code are below



// Mysql database table name

// Random confirmation code

// values sent by registration form

// Insert data into database
$sql="INSERT INTO $tbl_name(confirm_code, name, email, pass, birth, sex)VALUES('$confirm_code', '$name', '$email', '$pass', '$birth', '$sex')";

// if suceesfully inserted data into database, send confirmation link to email

// ---------------- SEND MAIL FORM ----------------

 // send e-mail to ...

// Your subject Line
 $subject="Your confirmation link here";

// From
 $header="from: Your Name <you@yourdomain.com>";

// Your message
 $message="Your Comfirmation link \r\n";
 $message.="Click on this link to activate your account \r\n";

 // send email
 $sentmail = mail($to,$subject,$message,$header);


 // if not found
else {
 echo "Not found your email in our database";

 // if your email succesfully sent
 echo "<div style='color:#0000ff; size: 14px; font-family: cambria; align-items:center;'>Dear $name Your Confirmation link Has Been Sent To $email.<br>Please Click on the Link to Activate Your Account.</div>";

 else {
 echo "Cannot send Confirmation link to your e-mail address";


everything will be published excluding radio button data.
what should change i do for publish that data

3 Years
Discussion Span
Last Post by rpv_sen


POST is missing on line 18 & 19 as below

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.