Dear MembersI want an help from you,I want to make…
Jan
24
2009
Dear Members
I want an help from you,
I want to make a php form
that contain all the relevant feilds,
-name
-fathers name
-date of birth
etc
and after completing the form, users submit to my email
tasawwuf.mail@gmail.com
and they, (users) will redirect to the homepage of my website
www.tasawwuf.110mb.com/index.htm
Can any body make it for me???
Answer this Question
You must be Logged In to post an Answer.
Not a member yet? Sign Up Now »
May Be Related
No related posts.
Star Points Scale
Earn points for Asking and Answering Questions!
[1 - 25
[26 - 50
[51 - 500
[501 - 5000
[5001 - 25000
[25001+
Answer #1
This is a simple example, I think you will be able to take this and make some changes to make it look like you want.
———————
<?
if ($email) { //if this is a form submission
mail("tasawwuf.mail@gmail.com","Form Submission","
The following form information was submitted:
Email: $email
Father's Name: $fathersName
Birthday: $birthday
","From:<$email>");
header('Location: http://www.tasawwuf.110mb.com/index.htm');
} //end email if
?>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<FORM ACTION="<?=$PHP_SELF ?>">
<P>Email: <INPUT TYPE="TEXT" NAME="email"><BR>
<BR>
Father's Name: <INPUT TYPE="TEXT" NAME="fathersName"><BR>
<BR>
Birthday: <INPUT TYPE="TEXT" NAME="birthday"><BR>
<BR>
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Submit"></P>
</FORM>
</BODY>
</HTML>
——————-
To add more fields, just use the example and make more inputs and add them to the email part.