Jump to content

forms


lillizzierae

Recommended Posts

right now i'm making a form for a newsletter. what it's going to do is send the data to my database. i'm writing the "third party script" and i don't know the code to send it to the database. the database is called _website and the table is newsletter.

 

what i have so far is this:

<?php

$fname = $_POST['fname'];

$lname = $_POST['lname'];

$phone = $_POST['phone'];

$dob = $_POST['dob'];

$email = $_POST['email'];

 

echo "Information sent ". $fname . " ". $lname . " ". $phone . " ". $dob . " ". email . " .<br />";

echo "You'll receive newsletters monthly";

 

?>

 

</body>

</html>

 

 

can anyone help me here?

Link to comment
https://forums.phpfreaks.com/topic/76459-forms/
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.