qmadd Posted March 23, 2006 Share Posted March 23, 2006 Hello everyone. i need help.If i have a html form with fields like: your name(sender's),phone,your email, and a message, and i want to send all this to someone (like a submit form), what do i have to do? how do i create the whole message? i want it to look something like this:From: yourname, your phone, youremailMessage: blah-blah, whateverCan anyone help me please? Thanks Link to comment Share on other sites More sharing options...
vchris Posted March 23, 2006 Share Posted March 23, 2006 Use cgi/perl script or server side scripting (ASP, PHP or ColdFusion) or the other option is to go with a free form processor. Google free form processor and you'll find one. Link to comment Share on other sites More sharing options...
qmadd Posted March 23, 2006 Author Share Posted March 23, 2006 it's ok, i know basic php. but how do i pass the variables from html form to php? can i just insert php code into the html or i have to create a new php file. can you help me pleasE? Link to comment Share on other sites More sharing options...
scott100 Posted March 23, 2006 Share Posted March 23, 2006 Please read the tutorials, php form handling: http://www.w3schools.com/php/php_forms.asp Link to comment Share on other sites More sharing options...
vchris Posted March 23, 2006 Share Posted March 23, 2006 Once the submit button is clicked that's when you PHP will come in play. Basically you'll have an if statement that will detect when the submit button is clicked. Once clicked it will get the variables from the form with $_POST[] and then send the email. Link to comment Share on other sites More sharing options...
qmadd Posted March 23, 2006 Author Share Posted March 23, 2006 thanks guys, i have solved it. you're the best. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now