I spent about three and a half hours last night trying to figure it out and I can't I dunno maybe Im just not looking in the right places to learn.
<form action="send.php" method="post">
<b>Name:</b><br>
<align=center><input type="text" name="name" size="20"><br>
<b>Year, Make, and Model of your car:</b><br>
<input type="text" name="car" size="30"><br>
<b>Location:</b><br>
<input type="text" name="location" size="20"><br>
<b>Date of Birth:</b><br>
<input type="text" name="dob" size="20"><br>
<b>Email Address:</b><br>
<input type="text" name="email address" size="25"><br>
<b>AOL IM S/N:</b><br>
<input type="text" name="aol im" size="20"><br>
<b>Yahoo IM S/N:</b><br>
<input type="text" name="yahoo im" size="20"><br>
<b>Comments:</b><br>
<textarea cols="50" rows="5" name="comment"></textarea><br>
<br>
<input type="submit" value="Sign Up">
<input type="reset" value="Clear">
<input type=hidden name="missing_fields_redirect" value="http://www.arpoc.com/">
</form>
Could someone please write me the send.php codetheres nobody here who will write your script for you...but if you show us some code...all of us would be happy to help you figure out what you don't understand.
look into:
<!-- m --><a class="postlink" href="http://php.net/mailThis">http://php.net/mailThis</a><!-- m --> is my form:
<form action="send.php" method="post">
<b>Name:</b><br>
<align=center><input type="text" name="name" size="20"><br>
<b>Year, Make, and Model of your car:</b><br>
<input type="text" name="car" size="30"><br>
<b>Location:</b><br>
<input type="text" name="location" size="20"><br>
<b>Date of Birth:</b><br>
<input type="text" name="dob" size="20"><br>
<b>Email Address:</b><br>
<input type="text" name="email" size="25"><br>
<b>AIM S/N:</b><br>
<input type="text" name="aim" size="20"><br>
<b>Yahoo IM S/N:</b><br>
<input type="text" name="yim" size="20"><br>
<b>Comments:</b><br>
<textarea cols="50" rows="5" name="comment"></textarea><br>
<br>
<input type=hidden name="missing_fields_redirect" value="http://www.arpoc.com/">
<input type="submit" value="Sign Up">
<input type="reset" value="Clear">
</form>
This is the PHP code I came up with:
<?php
$recipient = "[email protected]";
$subject = "ARPOC Sign Up Request";
$message = "Name: {$_POST['name']}\r\n
Car: {$_POST['car']}\r\n
Location: {$_POST['location']}\r\n
Date Of Birth: {$_POST['dob']}\r\n
Email: {$_POST['email']}\r\n
AIM: {$_POST['aim']}r\n
YIM: {$_POST['yim']}r\n
Comments: {$_POST['comment']}r/n";
mail($recipient,$subject,$message,);
header("Location: index.php?page=contact?id=2");
?>
Ok now that I have all that. I was pretty sure it should work well when I tested it I got this error: "Parse error: parse error in /home/arpoc/public_html/send.php on line 15" I don't know what that means. Also Is there I was to redirect it to a thankyou page?Ok I found the problem with line 15 . And it works great now I just need to figure out how to get it to redirect to a thankyou page after the form has been submitted. Thank you for making me do it on my own.
Mikethere was a total of 9 minutes between your posts...
sorry i didn't drop everything and run to your aid.
as for the "thankyou" page - just put the html code for it in the same file/function as where you send the emailOriginally posted by Horus_Kol
there was a total of 9 minutes between your posts...
sorry i didn't drop everything and run to your aid.
as for the "thankyou" page - just put the html code for it in the same file/function as where you send the email
I since hostility I ment thank you for making me do it on my own because someone told me I needed too. And I was being serious. As for the Thankyou page I need to put the redirect code in the same page as the php code or the signup.html page?in the send.php page.
and please keep all your posts together. they all relate to the same problem. I will merge them now.thank you all for your help I got it all working.
<form action="send.php" method="post">
<b>Name:</b><br>
<align=center><input type="text" name="name" size="20"><br>
<b>Year, Make, and Model of your car:</b><br>
<input type="text" name="car" size="30"><br>
<b>Location:</b><br>
<input type="text" name="location" size="20"><br>
<b>Date of Birth:</b><br>
<input type="text" name="dob" size="20"><br>
<b>Email Address:</b><br>
<input type="text" name="email address" size="25"><br>
<b>AOL IM S/N:</b><br>
<input type="text" name="aol im" size="20"><br>
<b>Yahoo IM S/N:</b><br>
<input type="text" name="yahoo im" size="20"><br>
<b>Comments:</b><br>
<textarea cols="50" rows="5" name="comment"></textarea><br>
<br>
<input type="submit" value="Sign Up">
<input type="reset" value="Clear">
<input type=hidden name="missing_fields_redirect" value="http://www.arpoc.com/">
</form>
Could someone please write me the send.php codetheres nobody here who will write your script for you...but if you show us some code...all of us would be happy to help you figure out what you don't understand.
look into:
<!-- m --><a class="postlink" href="http://php.net/mailThis">http://php.net/mailThis</a><!-- m --> is my form:
<form action="send.php" method="post">
<b>Name:</b><br>
<align=center><input type="text" name="name" size="20"><br>
<b>Year, Make, and Model of your car:</b><br>
<input type="text" name="car" size="30"><br>
<b>Location:</b><br>
<input type="text" name="location" size="20"><br>
<b>Date of Birth:</b><br>
<input type="text" name="dob" size="20"><br>
<b>Email Address:</b><br>
<input type="text" name="email" size="25"><br>
<b>AIM S/N:</b><br>
<input type="text" name="aim" size="20"><br>
<b>Yahoo IM S/N:</b><br>
<input type="text" name="yim" size="20"><br>
<b>Comments:</b><br>
<textarea cols="50" rows="5" name="comment"></textarea><br>
<br>
<input type=hidden name="missing_fields_redirect" value="http://www.arpoc.com/">
<input type="submit" value="Sign Up">
<input type="reset" value="Clear">
</form>
This is the PHP code I came up with:
<?php
$recipient = "[email protected]";
$subject = "ARPOC Sign Up Request";
$message = "Name: {$_POST['name']}\r\n
Car: {$_POST['car']}\r\n
Location: {$_POST['location']}\r\n
Date Of Birth: {$_POST['dob']}\r\n
Email: {$_POST['email']}\r\n
AIM: {$_POST['aim']}r\n
YIM: {$_POST['yim']}r\n
Comments: {$_POST['comment']}r/n";
mail($recipient,$subject,$message,);
header("Location: index.php?page=contact?id=2");
?>
Ok now that I have all that. I was pretty sure it should work well when I tested it I got this error: "Parse error: parse error in /home/arpoc/public_html/send.php on line 15" I don't know what that means. Also Is there I was to redirect it to a thankyou page?Ok I found the problem with line 15 . And it works great now I just need to figure out how to get it to redirect to a thankyou page after the form has been submitted. Thank you for making me do it on my own.
Mikethere was a total of 9 minutes between your posts...
sorry i didn't drop everything and run to your aid.
as for the "thankyou" page - just put the html code for it in the same file/function as where you send the emailOriginally posted by Horus_Kol
there was a total of 9 minutes between your posts...
sorry i didn't drop everything and run to your aid.
as for the "thankyou" page - just put the html code for it in the same file/function as where you send the email
I since hostility I ment thank you for making me do it on my own because someone told me I needed too. And I was being serious. As for the Thankyou page I need to put the redirect code in the same page as the php code or the signup.html page?in the send.php page.
and please keep all your posts together. they all relate to the same problem. I will merge them now.thank you all for your help I got it all working.