Dear Webmasters
I need Some One To Help Me In Editing This html And php Script in adding more feilds to this code the feilds I would like is,there website URL,My Back Link URL,If You Have The Time Please Help Me With This php Script
<form name=”form” method=”post” action=”contact_thanks.php”>
<p class=”bodymd”>Your Website 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: $NamenEmail: $EmailnComments: $Commentsn”;
$extra = “From: $NamernReply-To: $Emailrn”;
mail (“
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>”;
}
?>
</php
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 For Your Time
joekid