Click to See Complete Forum and Search --> : php Link Submitter
joekid
08-06-2006, 10:04 AM
Hello
I am Sorry For Making Two Posts Of The Same Thing But My First Post Was In The HTML Subject.I am Just Learning How To Use The Form.
Has Any One Got A Good And Spam Free php link form Code Or Can Tell Me Were I Can Find A Form. I Have Webmasters Exchanging Links With My three Sites A Lot But The Forms I am using some times it works and other times it don't.The Feilds I Would Like In It Is, There Site Name,The URL To There Site, There E-mail Address, Location Of My Link A There Google Page Rate. Then The Description in Textarea. And A Thank You E-mail. I don't Know To Much About The php Codes or I mite Beable To Make One My Self.
I will Apprecate Any Help On This That I Can Get.
Thank You
joekid
joekid
08-06-2006, 12:58 PM
HI All
I found this code but I don't know how to Edit it as I stated I don't know the php codes. the way I Would Like it to look. here is the codes
HTML CODE
<form name="form" method="post" action="contact_thanks.php">
<p class="bodymd">Your Name<br>
<input type="text" name="Name">
</p>
<p class="bodymd">Your Email<br>
<input type="text" name="Email">
</p>
<p class="bodymd">Comments or Questions<br>
<textarea name="Comments" rows="5" cols="40"></textarea>
</p>
<p class="bodymd">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Clear Form">
</p>
</form>
__________________________________________________________
php code
<?php
if (($Name == "") || ($Email == "") || ($Comments == ""))
{
echo "<form name=form method=post action=contact_thanks.php>";
echo "<p class=bodymd>All three fields of this form are required, I really don't think that's too much to ask...</p>";
echo "<p class=bodymd>Fill in the ones you missed, they are listed below.</p>";
}
if ($Name == "")
{
echo "<p class=bodymd>Your Name<br><input type=text name=Name></p>";
}
else
{
echo "<input type=hidden name=Name value=$Name>";
}
if ($Email == "")
{
echo "<p class=bodymd>Your Email<br><input type=text name=Email></p>";
}
else
{
echo "<input type=hidden name=Email value=$Email>";
}
if ($Comments == "")
{
echo "<p class=bodymd>Comments or Questions<br><textarea name=Comments rows=5 cols=40></textarea></p>";
}
else
{
echo "<input type=hidden name=Comments value=$Comments>";
}
if (($Name == "") || ($Email == "") || ($Comments == ""))
{
echo "<input type=submit name=Submit value=Submit>";
echo "<input type=reset name=Reset value=Clear Form>";
echo "</form>";
}
else
{
$message = "Name: $Name\nEmail: $Email\nComments: $Comments\n";
$extra = "From: $Name\r\nReply-To: $Email\r\n";
mail ("link-to@joekids-templates.com", "Website Email", $message, $extra);
echo "<p class=bodymd>Thanks for your inguiry, $Name.</p>";
echo "<p class=bodymd>A response will be sent to $Email as soon as possible.</p>";
}
?>
I would like to add more Feilds To the codes like a place so the requesters can add there web site url, and add were they have my link at,and I would like to have it so they can input there Google page rate.all so with this code do I have to make a thank you e-mail and add it to the same folder?
If you have the time Please help me with this
Thank you
joekid