/    Sign up×
Community /Pin to ProfileBookmark

I Really Need Help In Editing This php Script

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 (“[email protected]“, “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>”;
}
?>
</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

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@The_Little_GuyAug 07.2006 — please place the code in [ PHP][/code]

(without the space between the [B][[/B] and the [B]P[/B])
Copy linkTweet thisAlerts:
@joekidauthorAug 07.2006 — HI Little Guy IHope This IsWhat You Ment For I don't know a Thinfg About the php Scripts

Thank you

joekis
Copy linkTweet thisAlerts:
@firmanAug 07.2006 — [code=php]

<?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 ("[email protected]", "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>";
}
?>
</php

[/code]
×

Success!

Help @joekid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...