Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Jim Giner
The error is pretty explicit - there is no field in your table called '250kbps'. What you should have is a field (column) called "speed" for example, with values from 1...5 or whatever. To the users they will only deal with actual speed values on their screen if you use the speeds as the valu

Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
Thanks everyone. > If there is no purpose, I would make the values of the inputs the values you > want to store in your database. > Muuch easier.. > So I am trying to keep this simple and just assign the value with the radio button and then insert it into mysql database, but with the following co

Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Karl DeSaulniers
Hi Chris, Here is the corrected code. Yes, call the function before the SQL SELECT like so. You may have to work with it a bit. This was just off the top of the head. But now that I look at it, I think Jim may be right. What's the purpose of the inputs having 1, 2, 3, etc and not the 0-250

[PHP-DB] Re: radio form submission

2011-06-23 Thread Jim Giner
If you put the "0-250kbps" as the value= of your html tag, php would give you that when you did this: $rb_picked = $_POST['post_tptest']. No need for a switch or anything to re-interpret what the user picked. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP-DB] Re: radio form submission

2011-06-23 Thread Jim Giner
Try reading a good html reference on how radio buttons work. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php