Re: [PHP-DB] radio form submission

2011-06-24 Thread Guru™
I guess if you are storing the value of "post_tptest" in the database, it should return the same value what the user selected in the radio option. If I am right in your display you are just calling the data from the database. Check if the data is properly storing the radio button values in the data

Re: [PHP-DB] radio form submission

2011-06-23 Thread Daniel P. Brown
On Thu, Jun 23, 2011 at 14:18, Chris Stinemetz wrote: > So far I am good on creating the form and  submitting it to mysql > database and calling the submitting value from a different script. > > My question is: How can I make it so when a user selects radio option > value "1" it will then be displ

Re: [PHP-DB] radio form submission

2011-06-23 Thread Daniel P. Brown
On Thu, Jun 23, 2011 at 16:08, Chris Stinemetz wrote: > > I must be missing something. I am just getting a blank page. Your help > is greatly apprecieated. This is why you're supposed to take the advice and write it out yourself, not copy and paste the code. ;-P By copying and pasting t

Re: [PHP-DB] radio form submission

2011-06-23 Thread Tamara Temple
On Jun 23, 2011, at 2:32 PM, Karl DeSaulniers wrote: Try this... function getSpeed($val) { if($val != 'undefined') { switch ($val){ case "1": $post_tptest = "0-250kbps"; break;

Re: [PHP-DB] radio form submission

2011-06-23 Thread Chris Stinemetz
> >    Use an if or a switch.  For example: > I think your suggestions are exactly what I am looking for. I am not sure exactly where to place it. Do I insert it after the query statment? Thank you, Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP-DB] radio form submission

2011-06-23 Thread Daniel P. Brown
On Thu, Jun 23, 2011 at 15:46, Chris Stinemetz wrote: >> >>    Use an if or a switch.  For example: >> > > I think your suggestions are exactly what I am looking for. I am not > sure exactly where to place it. Do I insert it after the query > statment? During your while() loop. This line her

Re: [PHP-DB] radio form submission

2011-06-23 Thread Karl DeSaulniers
I also think you need to use the mysql_free_result like so.. echo ''; while($row = mysql_fetch_assoc($result)) { echo '' . $row['mar_name'] . ''; mysql_f

Re: [PHP-DB] radio form submission

2011-06-23 Thread Chris Stinemetz
On Thu, Jun 23, 2011 at 2:49 PM, Daniel P. Brown wrote: > On Thu, Jun 23, 2011 at 15:46, Chris Stinemetz > wrote: >>> >>>    Use an if or a switch.  For example: >>> >> >> I think your suggestions are exactly what I am looking for. I am not >> sure exactly where to place it. Do I insert it after

Re: [PHP-DB] radio form submission

2011-06-23 Thread Karl DeSaulniers
Try this... function getSpeed($val) { if($val != 'undefined') { switch ($val){ case "1": $post_tptest = "0-250kbps"; break; case "2":