This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standard_personals. It's free and painless.

Build A Website Blog

PHP - Link Exchange Form - Part 1

Skip | 22 December, 2004 16:04

Following is the html code, with PHP code variables that comprise a simple form that a visitor would fill out to submit a link exchange request to you for.

Link exchanges are one way of building up referrals to your website and help grow your search engine rankings.

So this is the first part of the code - a sample for the form.  Just copy this code and insert it into your template and you should have your form ready.

Part 2 of the lesson will contain the PHP file that processes the variables in this form.

Enjoy!

Skip

_________________________

<form name="link" method="post" action="email1.php">
<table><tr>
<td width="28%" class="body">
<div align="right" class="bodytext"><b>Your Name</b></div></td>
<td width="2%">&nbsp;</td><td width="70%">
<input type="text" name="UserName" size="35"></td></tr>
<tr> <td width="28%" class="body">
<div align="right" class="bodytext"><b>Your Valid Email Address</b></div></td>
<td width="2%">&nbsp;</td>
<td width="70%"> <input type="text" name="UserEmail" size="35"></td></tr>
<tr> <td width="28%" class="body">
<div align="right" class="bodytext"><b>Title (anchor Text) of Link</b></div></td>
<td width="2%">&nbsp;</td><td width="70%">
<input type="text" name="UserLink" size="35"></td></tr>
<tr> <td width="28%" class="body"> <div align="right" class="bodytext"><b>Your URL for Submission</b></div></td>
<td width="2%">&nbsp;</td><td width="70%"> <input type="text" name="UserUrl" size="35" value="http://www."></td></tr>
<tr> <td width="28%"> <div align="right"><span class="bodytext"><b>Brief description of your URL</b></span><b class="body">
</b></div></td>
<td width="2%">&nbsp;</td><td width="70%"> <textarea name="UserDes" cols="30" rows="5"></textarea></td></tr>
<tr> <td width="28%"> <div align="right" class="bodytext"><strong>The URL where your link to KD is</strong></div></td>
<td width="2%">&nbsp;</td><td width="70%"><input type="text" name="UserUrl2" size="35" value="http://www."></td></tr>
<tr> <td width="28%">&nbsp;</td><td width="2%">&nbsp;</td><td width="70%">&nbsp;</td></tr>
<tr> <td width="28%"> <div align="right"></div></td>
<td width="2%">&nbsp;</td><td width="70%"> <input type="submit" name="Submit" value="Submit"></td></tr></table></form>


Comments for post

 
Build A Website | Javascript | HTML Help | Persuasive Copywriting | HTML Form | Simple eMail Form | Build A Website Map