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
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
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
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;
>
> 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
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
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
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
Try this...
function getSpeed($val) {
if($val != 'undefined') {
switch ($val){
case "1":
$post_tptest = "0-250kbps";
break;
case "2":