[PHP] Form Processing

2010-11-29 Thread Ron Piggott
I am unable to retrieve the value of $referral_1 from: $new_email = mysql_escape_string ( $_POST['referral_$i'] ); why? PHP while lopp to check if any of the fields were populated: $i=1; while ( $i = 5 ) { $new_email = mysql_escape_string ( $_POST['referral_$i'] ); if (

Re: [PHP] Form Processing

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, Ron Piggott ron.pigg...@actsministries.org wrote: I am unable to retrieve the value of $referral_1 from: That's very simple, you are missing the name attribute for your input elements, for example: input type=text name=email maxlength=60 class=referral_5

Re: [PHP] Form Processing

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 18:54, Ron Piggott ron.pigg...@actsministries.org wrote: $new_email = mysql_escape_string ( $_POST['referral_$i'] ); Because you're using literal quotes, so PHP is literally looking for the POST reference 'referral_$i'. Instead of using the style of field names

Re: [PHP] Form Processing Question - Empty Fields

2007-05-24 Thread Stut
Tijnema wrote: On 5/23/07, Stephen [EMAIL PROTECTED] wrote: I have a script to process the post from a form. The form is used to upload photos and has fields for the filename, alt text, caption and a checkbox to indicate if this photo is the main page image rotation. I wanted to build a

Re: [PHP] Form Processing Question - Empty Fields

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 11:40 am, Stephen wrote: I have a script to process the post from a form. The form is used to upload photos and has fields for the filename, alt text, caption and a checkbox to indicate if this photo is the main page image rotation. I wanted to build a general

[PHP] Form Processing Question - Empty Fields

2007-05-23 Thread Stephen
I have a script to process the post from a form. The form is used to upload photos and has fields for the filename, alt text, caption and a checkbox to indicate if this photo is the main page image rotation. I wanted to build a general routine to build the form to allow for a varying

Re: [PHP] Form Processing Question - Empty Fields

2007-05-23 Thread Tijnema
On 5/23/07, Stephen [EMAIL PROTECTED] wrote: I have a script to process the post from a form. The form is used to upload photos and has fields for the filename, alt text, caption and a checkbox to indicate if this photo is the main page image rotation. I wanted to build a general routine

Re: [PHP] Form Processing Question - Empty Fields

2007-05-23 Thread Greg Donald
On 5/23/07, Tijnema [EMAIL PROTECTED] wrote: Again, this is Off topic, /me rolls eyes Do you even know what P-H-P stands for? HTML questions are not off topic, especially form related ones. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-02-01 Thread Mike Potter
This worked perfectly. Thank you. As for the FAQ, I looked, but I guess not in the right place! Mike Tracy Finifter Rotton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Change the name of your checkboxes in your HTML to something like: name=DeleteIDs[]

[PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Mike Potter
Is it possible to pass an group of input boxes of the same name, then get the values of all the checked boxes or filled out textboxes? How do I get ALL the IDs passed. Right now it only passes the last ID. Do I really have to give them all unique names? For example... html head /head body form

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Tracy Finifter Rotton
Change the name of your checkboxes in your HTML to something like: name=DeleteIDs[] This will make it an array, and you can access all the elements like $_POST['DeleteIDs'][0] etc. (This should really be in a FAQ somewhere...) -- tracy On 1/31/03 11:17 AM, Mike Potter [EMAIL PROTECTED]

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Philip Olson
On Fri, 31 Jan 2003, Tracy Finifter Rotton wrote: Change the name of your checkboxes in your HTML to something like: name=DeleteIDs[] This will make it an array, and you can access all the elements like $_POST['DeleteIDs'][0] etc. (This should really be in a FAQ somewhere...)

[PHP] Form Processing problem....

2001-04-17 Thread Jack Lauman
I am calling the following php script from an HTML form with form name="comment_form" method="post" action="php/comment_form.php" In Internet Exploder 5.0 it processes the form, sends the message and commits to the database, but does not return to the referring page. In Netscape 4.77 it

RE: [PHP] Form Processing problem....

2001-04-17 Thread Jack Dempsey
incorrect...you have to do something after you process the info... best of luck, jack -Original Message- From: Jack Lauman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 8:47 PM To: php-general Subject: [PHP] Form Processing problem I am calling the following php script fr