how to setup a contact us page with blogger blog

62

By manoo_bilige

Contact Form HTML Code

<form action="http://yourdomain.com/action_form.php" method="post" name="contactform">
<table><tbody>
<tr>  <td valign="top">
<label for="first_name">First Name <span style="color: red;">*</span></label></td>  <td valign="top">
<input maxlength="50" name="first_name" size="30" type="text" /></td> </tr>
<tr>  <td valign="top">
<label for="last_name">Last Name <span style="color: red;">*</span></label></td>  <td valign="top">
<input maxlength="50" name="last_name" size="30" type="text" /></td> </tr>
<tr>  <td valign="top">
<label for="email">Email Address <span style="color: red;">*</span></label></td>  <td valign="top">
<input maxlength="80" name="email" size="30" type="text" /></td>  </tr>
<tr>  <td valign="top">
<label for="subject">Subject <span style="color: red;">*</span></label></td>  <td valign="top">
<input maxlength="30" name="subject" size="30" type="text" /></td> </tr>
<tr>  <td valign="top">
<label for="comments">Comments <span style="color: red;">*</span></label></td>  <td valign="top">
<textarea cols="45" maxlength="1000" name="comments" rows="6"></textarea></td>    </tr>
<tr>  <td colspan="2" style="text-align: center;"><span style="font-size: xx-small;"><i>Max Length 1000</i>                                              <span style="color: red;">*</span> Required</span>


<input type="submit" value="Submit" /></td> </tr>
</tbody></table>
</form>

Setup Blogger Page

Create a new page on your blogger this is the new feature blogger allows to create 10 pages

Name your page it will look like something www.you.blogspot.com/p/contact.html

Chose HTML when writing content into your page and put the code copied from here or check the folder you download  Blogger-Page.txt

Save the page and proceed link it by widget or just just chose to no widget for manual setup

See the Contact Sample Page

Set up Contact Us PHP code

Now you have to host a PHP file on a live server

click to download PHP file and unzip

find PHP-Code.TXT and copy paste your code

save file as PHP filename.php

make sure mention connect URL in above Contact HTML Form

if you save PHP file as action_form.php in your root directory

you have to mention it in blogger page

www.yourdomain.com/action_form.php

Make sure you update the email address at line # 5 in your PHP file

Comments

manoo_bilige profile image

manoo_bilige Hub Author 20 months ago

See the working example implementation

http://www.paktech.co.cc

Linx 2 months ago

the php has been deleted

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    • No HTML is allowed in comments, but URLs will be hyperlinked
    • Comments are not for promoting your Hubs or other sites

    Please wait working