Results 1 to 7 of 7

Thread: creating Forms

  1. #1
    Join Date
    May 2006
    Location
    England
    Posts
    114
    Tokens
    0

    Default creating Forms

    Hi, I own a site and i want to create a form, anyway im using frontpage 2007, i createthe form from the options but when u click buttons it stays on the same page and dont send u answers to ur email

    helps.

  2. #2
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    I speak for most members when i say GOOGLE IT! lmao joking.

    Can you post the code?
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  3. #3
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    You need to also use PHP to actually send the message
    Looking for a good desiner to design a social networking template.

    PM me.

  4. #4
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    Oh and frontpage is absolutely crap. Dont use it
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  5. #5
    Join Date
    Jan 2007
    Location
    UK
    Posts
    3,955
    Tokens
    424

    Latest Awards:

    Default

    thats not true - frontpage is good if you know how to use it - but i do prefer dreamweaver
    2110 Reputation thanks to: Intersocial
    If you Rep, please leave your name.

  6. #6
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    frontpage is good for plain HTML but crap for anything else. Zend owns!
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  7. #7
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    there is no Frontpage 2007 it was discontinued after 2003 version... it has a new name and new everything in 2007 and the new one is total crap compaired to 2003...

    Heres a contact form:

    (NOTE I DID NOT MAKE THIS IM JUST POSTING IT)

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Email Form </title>
    </head>
    <body>
    
    <form method="post" action="sendeail.php">
    
    <!-- DO NOT change ANY of the php sections -->
    <?php
    $ipi = getenv("REMOTE_ADDR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
    ?>
    
    <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
    <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
    <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
    
    
    Your Name: <br />
    <input type="text" name="visitor" size="35" />
    <br />
    Your Email:<br />
    <input type="text" name="visitormail" size="35" />
    <br /> <br />
    <br />
    Attention:<br />
    <select name="attn" size="1">
    <option value=" Sales n Billing ">Sales n Billing </option>
    <option value=" General Support ">General Support </option>
    <option value=" Technical Support ">Technical Support </option>
    <option value=" Webmaster ">Webmaster </option>
    </select>
    <br /><br />
    Mail Message:
    <br />
    <textarea name="notes" rows="4" cols="40"></textarea>
    <br />
    <input type="submit" value="Send Mail" />
    <br />
    Free Code at: <a href="http://www.ibdhost.com/contact/">ibdhost.com/contact/</a>
    </form>
    
    </body>
    </html>
    save as contact.html or what ever you want

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sendemail Script</title>
    </head>
    <body>

    <!-- Reminder: Add the link for the 'next page' (at the bottom) -->
    <!-- Reminder: Change 'YourEmail' to Your real email -->

    <?php

    $ip 
    $_POST['ip'];
    $httpref $_POST['httpref'];
    $httpagent $_POST['httpagent'];
    $visitor $_POST['visitor'];
    $visitormail $_POST['visitormail'];
    $notes $_POST['notes'];
    $attn $_POST['attn'];


    if (
    eregi('http:'$notes)) {
    die (
    "Do NOT try that! ! ");
    }
    if(!
    $visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    {
    echo 
    "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput "<h2>Feedback was NOT submitted</h2>\n";
    echo 
    $badinput;
    die (
    "Go back! ! ");
    }

    if(empty(
    $visitor) || empty($visitormail) || empty($notes )) {
    echo 
    "<h2>Use Back - fill in all fields</h2>\n";
    die (
    "Use back! ! ");
    }

    $todayis date("l, F j, Y, g:i a") ;

    $attn $attn ;
    $subject $attn;

    $notes stripcslashes($notes);

    $message $todayis [EST] \n
    Attention: 
    $attn \n
    Message: 
    $notes \n
    From: 
    $visitor ($visitormail)\n
    Additional Info : IP = 
    $ip \n
    Browser Info: 
    $httpagent \n
    Referral : 
    $httpref \n
    "
    ;

    $from "From: $visitormail\r\n";


    mail("YourEmail"$subject$message$from);

    ?>

    <p align="center">
    Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
    <br />

    Attention: <?php echo $attn ?>
    <br />
    Message:<br />
    <?php $notesout str_replace("\r""<br/>"$notes);
    echo 
    $notesout?>
    <br />
    <?php echo $ip ?>

    <br /><br />
    <a href="contact.php"> Next Page </a>
    </p>

    </body>
    </html>
    save as sendeail.php
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

Posting Permissions

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