Results 1 to 3 of 3

Thread: CSS Tableless Form: where's the php file?

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS Tableless Form: where's the php file?

    1) Script Title: CSS Tableless Form

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...ableless-form/

    3) Describe problem: Hello,
    I'd like to use this form, but what should I put in the php file to get the information?
    Thank you

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The code shown is just for the frontpage portion. You'll need to install a form processing script on the backend to get it to work the way you want. See here for a list of them.
    DD Admin

  3. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, I installed a contact.php script I found here in this forum post.
    However I can only receive an empty email...
    Could someone tell me how I can adapt it to the html code of the CSS Tableless form?
    Because if I start by creating an entirely new php form, that will require different html, and then different css, am I wrong?
    Thanks in advance
    here's the code:
    PHP Code:
    <?php

    //EDIT THESE 2 FIELDS WITH YOUR INFO
    $to "_YOUR_EMAIL_ADDRESS_";
    $subject "_SUBJECT_OF_EMAIL_";


    // NO NEED TO EDIT PAST HERE
    $message "";
    foreach(
    $_REQUEST as $k => $v) {
        
    $message .= trim(strip_tags($k)) . ": " trim(strip_tags($v)) . "<br>";
    }

    if( !
    mail($to$subject$message) )
    {
        echo 
    "<p>Could Not Send Email.. Please Try Again Later</p>";
    }
    else 
    {
       echo 
    "<p>Email Sent. Thank You!</p>";
    }
    ?>

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
  •