₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,062 members, 8,420,097 topics. Date: Thursday, 04 June 2026 at 11:21 AM

Toggle theme

Help Him With Php Codes To Process His Form - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersHelp Him With Php Codes To Process His Form (556 Views)

1 Reply

Help Him With Php Codes To Process His Form by SambisaKing(op): 7:54pm On Oct 10, 2014
Pls geeks i just started learning php but how do i make this form come alive with in php.
I'm not too familiar with php but i can write few lines of code, i can use Wordpress aswell but how do i process this form so that all the data can be accessed and send to the e-mail address provided?

Thanks all

Re: Help Him With Php Codes To Process His Form by maekhel(m): 8:43pm On Oct 10, 2014
something like this though it not validated and sanitized.
if(isset($_POST['join'])){
//collect data entered by user
$name = $_POST['name'];
$surname = $_POST['surname'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$dob = $_POST['dob'];
$gender = $_POST['gender'];
$profession = $_POST['profession'];
$membership = $_POST['membership'];
$contact = $_POST['contact'];
$find = $_POST['find'];

// create message details
$subject = "Registration Details";
$body = "You have just registered on my site, your details below: " .\n. "Name: ".$name.\n
"Surname: ".$surname.\n
"Email: ".$email.\n;

mail($email, $subject, $body);
echo "Thanks for registering.";
}
you can read more about handling form in php: http://tutorialslodge.com/working-html-form-php/
1 Reply

Php Codes For Moving Text And Rolling BannersBaking Php Codes With CakephpPlease Help With This Php Codes.234

Website With Two Years Unlimited Hosting For SaleBrand New Wrist Mobile PhoneSuggest Me A Domain Name For My Website !!