dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: php and html menu

  1. #1
    Join Date
    Jul 2006
    Posts
    6

    php and html menu

    I am attempting to program an html menu for use with php mail program. Right now I have the menu list of states named "state". Is the following code right for the post?
    <?

    {
    header ("Location: http://www.mmyconsulting.com/");
    exit(0);
    }

    $recipients = "bill.monachino@mmyconsulting.com";

    $email= $_POST['email'];

    $message = "The following inquiry has been submitted...\n\n";
    $message .= "Name: ".$_POST['name']."\n";
    $message .= "Title: ".$_POST['title']."\n";
    $message .= "Company: ".$_POST['company']."\n";
    $message .= "Address: ".$_POST['address 1']."\n";
    $message .= "Address2: ".$_POST['address2']."\n";
    $message .= "City: ".$_POST['city']."\n";
    $message .= "State: ".$_POST['state']."\n";
    $message .= "Postal Code: ".$_POST['zip']."\n";
    $message .= "Interested In: ".$_POST['direct_placement']."\n";
    $message .= "Interested In: ".$_POST['staff_augmentation']"\n";
    $message .= "Interested In: ".$_POST['consulting_project']"\n\n";

    $message .= "Comments:\n".stripslashes($_POST['textarea']);

    mail($recipients, "MMY Consulting Inquiry", $message,
    "From: $email\r\n"
    ."X-Mailer: PHP/" . phpversion());

    header ("Location: http://www.mmyconsulting.com/thank_you.html");
    exit(0);


    ?>



    Will it pick up the value and transmit it in the e-mail?
    Will this script even work?
    Thanks in advance!
    Dan

  2. #2
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Have you considered testing the script yourself?

  3. #3
    Join Date
    Jul 2006
    Posts
    6
    I don't have the proper programs installed.

  4. #4
    Join Date
    Jul 2006
    Posts
    6
    I guess my question is, if I put the values in as the state name, abbrieviation wil the script, as written, transmit the value?
    Thanks,
    Dan

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