www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] creating a php form

  1. #1
    Join Date
    May 2006
    Posts
    12

    resolved [RESOLVED] creating a php form

    hi people.

    i have created a general registration form in php. whats the coding that gets the results posted to an email address?

  2. #2
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,739
    PHP Code:
    <?php

    $address 
    'you@yourDomain.com';
    $subject 'Web Form';
    $message '';

    foreach(
    $_POST as $k => $v)
    {
        
    $message .= "\r\n$k$v";
    }

    echo( @
    mail($address$subject$message'From: '.$address) ? 'Success' 'Failure' );

    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles