LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   processing email forms with php (https://www.linuxquestions.org/questions/programming-9/processing-email-forms-with-php-699430/)

3vra 01-23-2009 01:59 PM

processing email forms with php
 
could someone please explain to me why this codes sends only the information checked in the check boxes and not the text boxes.


<tr>
<td><input type="checkbox" name="MLIS[]" value="Notepads" />Notepads</td>
<td><input type="text" size="1" maxlength="2" onkeydown="val = this.value;" onkeyup="if (/\D/.test(this.value)) { this.value = val; }" ></td>
</tr>

this is the code used for sending the items to the email but only the items in the check boxes show up

foreach ($_POST['MLIS'] as $item){
$items .= $item ."\n";


the items are stored in the php variable $items

michaelk 01-23-2009 02:12 PM

Duplicate post.
continue here:
http://www.linuxquestions.org/questi...th-php-698957/

3vra 01-23-2009 02:17 PM

Quote:

Originally Posted by michaelk (Post 3418950)

I got help figuring out the initial problem of not getting the items listed.The problem that occurs now is that Item checked were sent to the email but not the amount that was enter in the text box provided

michaelk 01-23-2009 02:26 PM

My mistake but the OP has asked the same question in the original thread.

crabboy 01-23-2009 03:27 PM

Follow this discussion here:

http://www.linuxquestions.org/questi...th-php-698957/


All times are GMT -5. The time now is 07:09 PM.