Jump to content

Php Send Mail Not Sending Everything


Stevan

Recommended Posts

I am trying to use Php send mail. The problem I am having is when I use this on the page

 

<select name="color_choice">

<option value="red">red</option>

<option value="blue">blue</option>

</select>

 

 

and this in the send mail

 

$color_choice= $_REQUEST['color choice'] ;

 

I get nothing sent

 

 

What do I have to use or do I have a mistake All other text items are being sent

 

THXS STeve

Link to comment
https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/
Share on other sites

 

<form name="form1" form method="post" action="sendmail.php">

  <p>Email:

    <input name="email" type="text">

    <br />

    Message:<br />

    <input name="message" type="text" size="40">

    <br>

      <select name="color_choice">

<option value="red">red</option>

<option value="blue">blue</option>

</select>

    </p>

  <p> <br />

    <input type="submit" />

  </p>

</form>

 

 

<?php

  $email = $_REQUEST['email'] ;

  $message = $_REQUEST['message'] ;

$color_choice= $_REQUEST['color_choice'] ;

  mail( "[email protected]", "Feedback Form Results",

    $message, "From: $email" );

  header( "Location: http://www.example.com/thankyou.html" );

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.