₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,165 members, 8,448,921 topics. Date: Tuesday, 21 July 2026 at 06:00 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 (564 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

Here Is A Messaging App That Doesn't Use InternetGtbank Buying Credit From Your Account --does Anyone Know The Technology Behind?FREE Google Adsense Account For YOU