Re: [PHP] $_POST variable

2011-03-12 Thread tedd
At 6:07 PM -0600 3/12/11, Shawn McKenzie wrote: On 03/12/2011 10:37 AM, tedd wrote: > Here's a demo: > http://php1.net/b/form-radio1/ > Don't make it more complicated than it needs be. My point exactly! So long as the name of the name[] part is the same they will be treated as the same

Re: [PHP] $_POST variable

2011-03-12 Thread Shawn McKenzie
On 03/12/2011 10:37 AM, tedd wrote: > At 9:28 PM +0200 3/11/11, Danny wrote: >> Hi guys, >> >> I have a form that has a long list of radio-bottons inside of it. The >> radio-buttons are dynamically created via php and MySQL. >> >> Here is an example of one of the radio buttons: >> >> > ?>" value="0

Re: [PHP] $_POST variable

2011-03-12 Thread tedd
At 9:28 PM +0200 3/11/11, Danny wrote: Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one of the radio buttons: ; ?>" value="0"> ; ?>" value="1"> Now, when I submit this form to ano

Re: [PHP] $_POST variable

2011-03-11 Thread richard gray
On 11/03/2011 20:28, Danny wrote: Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one of the radio buttons: " value="0"> " value="1"> Now, when I submit this form to another page fo

Re: [PHP] $_POST variable

2011-03-11 Thread Steve Staples
On Fri, 2011-03-11 at 21:28 +0200, Danny wrote: > Hi guys, > > I have a form that has a long list of radio-bottons inside of it. The > radio-buttons are dynamically created via php and MySQL. > > Here is an example of one of the radio buttons: > > " > value="0"> > " > value="1"> > > Now, when

Re: [PHP] $_POST variable

2011-03-11 Thread Daniel Brown
On Fri, Mar 11, 2011 at 14:28, Danny wrote: [snip!] > > Now, when I submit this form to another page for processing, how would I > "catch" > the above radio-button's $_POST name since I do not know the name, only that > it > starts with "radio_" ? One method is a foreach() loop. $v) {

[PHP] $_POST variable

2011-03-11 Thread Danny
Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one of the radio buttons: " value="0"> " value="1"> Now, when I submit this form to another page for processing, how would I "catch" th

Re: [PHP] $_POST[$variable]

2003-12-11 Thread Chris Garaffa
On Dec 11, 2003, at 8:02 AM, Christian Jancso wrote: Hi there, I have the following problem: How can I use variables in the $_POST statement? Here is my code: $old_station[$o] = $_POST['$i']; $new_station[$o] = $_POST['$i']; Christian, My biggest question is: What are $i and $o set to? Unless $i

Re: [PHP] $_POST[$variable]

2003-12-11 Thread CPT John W. Holmes
From: "Christian Jancso" <[EMAIL PROTECTED]> > I have the following problem: > How can I use variables in the $_POST statement? > Here is my code: > > $old_station[$o] = $_POST['$i']; > $new_station[$o] = $_POST['$i']; $old_station[$o] = $_POST[$i]; $new_station[$o] = $_POST[$i]; Variables are n

[PHP] $_POST[$variable]

2003-12-11 Thread Christian Jancso
Hi there, I have the following problem: How can I use variables in the $_POST statement? Here is my code: $old_station[$o] = $_POST['$i']; $new_station[$o] = $_POST['$i']; echo ""; echo ""; while ($status_array = mysql_fetch_array($status)) { $i++; echo ""; echo ""."";