LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Closed Thread
 
Search this Thread
Old 01-23-2009, 02:59 PM   #1
3vra
Member
 
Registered: Dec 2008
Distribution: ubuntu
Posts: 51
Blog Entries: 1

Rep: Reputation: 16
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
 
Old 01-23-2009, 03:12 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,143

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Duplicate post.
continue here:
http://www.linuxquestions.org/questi...th-php-698957/
 
Old 01-23-2009, 03:17 PM   #3
3vra
Member
 
Registered: Dec 2008
Distribution: ubuntu
Posts: 51
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by michaelk View Post
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
 
Old 01-23-2009, 03:26 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,143

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
My mistake but the OP has asked the same question in the original thread.
 
Old 01-23-2009, 04:27 PM   #5
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Follow this discussion here:

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


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forward email to script for processing? aaronvegh Programming 10 01-14-2011 12:34 PM
processing forms with PHP 3vra Programming 15 02-16-2009 03:28 PM
Directing email from web forms to MX server globalpiece Linux - Newbie 9 11-25-2008 10:47 AM
PHP & Apache - php files not processing aolong Linux - General 1 12-17-2006 04:09 AM
Best mailer to use for a website with PHP email forms gbkyle Linux - Software 1 07-07-2005 05:00 AM


All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration