vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Radio Buttons - If Checked Do This Else Do That (https://vborg.vbsupport.ru/showthread.php?t=206812)

1Unreal 02-27-2009 02:36 PM

Radio Buttons - If Checked Do This Else Do That
 
Ive made a little script which queries a database. With each result the user needs to do 1 of two things. I want them to be able to chose between these then the data to be sent to another page to be handled.

The problem I have is how would I firstly send all this data to another page? Secondly how would I handle it?

PHP Code:

while($row mysql_fetch_assoc($rs)) {
        echo 
'<tr>';
        echo 
'<td><a href="'.rawurldecode($row['url']).'" target="_blank">'.rawurldecode($row['url']).'</a></td>';
        echo 
'<td><input type="radio" name="'.$row['id].'" value="yes">|<input type="radio" name="'.$row['id].'" value="no"></td>';
        echo 
'</tr>';
    } 

So, how would I do it?

By the way, this is not exactly a vB question. Just general PHP


All times are GMT. The time now is 07:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00983 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete