Advanced Search

Results 1 to 7 of 7

Thread: Contact us box

  1. #1
    Join Date
    Sep 2007
    Posts
    162
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Contact us box

    I need a contact us box for my website contact us page
    Requirments:

    Name:
    E-mail:
    Mobile-no:
    Contact to: (here I want a box like see above font one) Arial
    Black Arial
    Message:

    Reset form | Submit

    Can someone help me???

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Err, I think you use HTML for this
    Go read a HTML tutorial. Or, in Dreamweaver, you can use the form tools.

    //Darn it, can't link to w3schools.com 'cause it's closed.

    For sending the data, You need to use a server-side language to do this, like PHP. Here's a good tutorial to start off with.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Dec 2006
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You cant use html?

    Here is where I am at (in the same boat)

    http://www.nickschale.us/LU2/contact.html
    got the form built how i want, just need to figure out how the post action works

    Thanks for any help!!!

  4. #4
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    What they do is use iframe. becuase unless they have the form in html but post it to another php page, if you can use php then here you go....

    This is the contact.html or php page....
    HTML Code:
    <center>
    <form method="post" action="../contact/mailme.php">
    &nbsp;<table border="1" width="400" height="41" style="border-collapse: collapse" bordercolor="#000000">
    <tr>
    <td height="4" width="95">
    <b>Your Email:</b> </td>
    <td height="4" width="342"> <input type="text" name="email" size="45"></td>
    </tr>
    <tr>
    <td height="27" width="95">
    <b>Your Website:</b></td>
    <td height="27" width="342"> <input type="text" name="subject" size="45"></td>
    </tr>
    <tr>
    <td height="20" width="95"><b>Message:</b></td>
    <td height="20" width="342"> 
    <textarea name="message" cols="34" rows="3">Message here...</TEXTAREA></td>
    </tr>
    </table>
    <p>
    <input type="submit" name="submit" value="Submit">
    <input type="reset" name="reset" value="Reset"></p>
    </form>
    <p>&nbsp;</p>
    </center>
    And this is the processing page....

    PHP Code:
    <?

    $to 
    "YOU@YOURSITE.COM";

    if(
    $submit)
    {
    mail("$to""$subject""$email""$message");

    } else {
    echo 
    "There was an error please try again at a later time.";
    }
    ?>

    <?php
    //This is to redirect them to a thankyou page or whatever!
    header'Location: htt://www.yourpage.com/thankyou.html' ) ;
    ?>
    Hey new design new look, goto xudas for personal webdsign help.. (:

  5. #5
    Join Date
    Sep 2007
    Posts
    162
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Making a form is not I want I want the script of if someone click the submit button after filling the form and everything the information will come into my email! I can make the form from dreamweaver but how to make the 'submit' button work need help in that regard.

  6. #6
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    i dunno if that is possibble, you could simply put those two page together but i dont think that ispossible, you might have to have ur own server..
    Hey new design new look, goto xudas for personal webdsign help.. (:

  7. #7
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    If you really want to do this go ahead... you just need to replace this line:
    Code:
    <form>
    with
    Code:
    <form action="MAILTO:Youremail@domain.com" method="post" enctype="plain/text">
    Its not secure at all and requires your user to have some type of mail program like outlook... But it works... I recommend using php to do this... but since you said you can't then... thats ok...

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
  •