Results 1 to 2 of 2

Thread: I need PHP code for my Contact Form

  1. #1
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question I need PHP code for my Contact Form

    Dear Friends,

    Hi, recently I'm going to make a website. As a novice designer I've set up the site, but one thing I could not be able to fix that is my contact form. So, I need your help to make php codes for my contact form. The html structure is given below:

    ==========================
    <html>
    <head><title>Contact Form</title>
    </head>
    <body>
    <table border="0" cellspacing="0" cellpadding="0">
    <tr align="center">
    <td valign="top" align="left" class="support"><form name="Contact_Form" method="post"

    action="form.php" enctype="multipart/form-data">
    <fieldset class="fieldbox">
    <legend>General Information</legend>
    <table width="100%" border="0" cellspacing="1" cellpadding="2">
    <tr>
    <td width="30%" align="left" valign="top" class="formtext">Full Name: *</td>
    <td width="70%"><input name="fullname" type="text" size="25" value=""/></td>
    </tr>
    <tr>
    <td align="left" valign="top" class="formtext">Email: *</td>
    <td><input name="email" type="text" size="25" value=""/></td>
    </tr>
    <tr>
    <td align="left" valign="top" class="formtext">City: *</td>
    <td><input name="cityname" type="text" size="25" value=""/></td>
    </tr>
    <tr>
    <td align="left" valign="top" class="formtext">Country: *</td>
    <td><input name="countryname" type="text" size="25" value=""/></td>
    </tr>
    </table>
    </fieldset>
    <fieldset class="fieldbox">
    <legend>Department</legend>
    <table width="100%" border="0" cellspacing="1" cellpadding="2">
    <tr>
    <td width="30%" align="left" valign="top" class="formtext">Where to send: *</td>
    <td width="70%">
    <select name="Department">
    <option>Affiliate</option>
    <option>Feedback</option>
    <option>Services</option>
    <option>Support</option>
    </select>
    </td>
    </tr>
    </table>
    </fieldset>
    <fieldset class="fieldbox">
    <legend>Message Details</legend>
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td align="left" valign="top" class="formtext" width="30%">Subject: *</td>
    <td width="70%"><input name="subject" type="text" size="25" value=""

    style="WIDTH:98%"/></td>
    </tr>
    <tr>
    <td colspan="2"><textarea name="message" rows="10" cols="30"

    style="WIDTH:98%;"></textarea></td>
    </tr>
    </table>
    </fieldset>
    <fieldset class="fieldbox">
    <legend>Verify Submission</legend>
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td><span class="smalltext"><img src="CaptchaSecurityImages.php?width=100&height=20&characters=6" />
    Please enter the text into the textbox below you see in the image above. This is required to prevent automated submission of forms:</span></td>
    </tr>
    <tr>
    <td><input name="security_code" type="text" style="WIDTH:40%;"/></td>
    </tr>
    </table>
    </fieldset>

    <table width="100%" border="0" cellspacing="1" cellpadding="2">
    <tr>
    <td><input name="Submit" type="Submit" class="buttonS" value="submit"/><input

    name="reset" type="reset" class="buttonR" value="reset"/></td>
    </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
    </body>
    </html>
    =======================
    If anyone can help me regarding this I would be glad. Also, could you please let me know that where would I keep the .php files to my server? I want redirect to the users to my 'Submission Confirmed' page after clicking on the submit button.

    Eagerly waiting for your help.

    Thank you.

    Regards,
    Sumu
    Last edited by sumu; 12-24-2010 at 03:39 PM.

  2. #2
    Join Date
    Nov 2008
    Posts
    58
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Default

    Do you have the form.php and the CaptchaSecurityImages.php files with you?

    The pages below will be helpful
    How to make an HTML form

    How to create a contact form for your website

  3. The Following User Says Thank You to prasanthmj For This Useful Post:

    sumu (12-24-2010)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •