Jump to content

PHP project a simple registration form


sailu_mvn

Recommended Posts

hi i should do a registration form which has around 8 feilds. name lastname....and one checkbox asking ur male or female.

and then i have to take these values into a database all of them. i am not able to get how to take radio button values. After the user submits his registration he should be getting a mail saying thankyou....

any php postgresql geeks?

Help me pls

 

Link to comment
https://forums.phpfreaks.com/topic/41936-php-project-a-simple-registration-form/
Share on other sites

<form method='post' action='your_registration_page.php'>
<input name="radiobutton" type="radio" value="12345" />
<input type='submit' name='submit' value='submit'>
</form>

//On php page..

$your_variable = $_POST['radiobutton'];

//now variable $your_variable has the value of radio button

 

 

you can use mail() function to send mail after collecting the data.

eg.

mail($email, $subject, $message, $from);

 

$email=email address of the person to whom u want to send

$subject=subject

$message=ur msg goes here

$From=from whom the user is receiving the msg

 

u can try this

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.