Flights - Buy Anything On eBay - Mortgage - Personal Loans - Big Brother 9

PDA

View Full Version : strange issue when using radio buttons


falco85
Sep 27th 2006, 9:26 am
Hi,
I was tweaking a new script I purchased with my own options, and one of the additions was that I am now using a radio button instead of checkboxes (I'm talking about html forms) to get the value of a variable to be passed to a PHP script.

I was using $_POST('VariableName') with checkboxes on the other page script and the information was passing correctly. Now with radio buttons the script is not working :mad: what is the difference?

Thanks!

penagate
Sep 27th 2006, 10:40 am
Hi!

I can't remember off the top of my head how radio buttons work.
However, you can use var_dump to see what is being sent, and work from there.

if (strtoupper($_SERVER['REQUEST_METHOD']) === 'POST') {
header('Content-type: text/plain');
var_dump($_POST);
exit();
}


Regards
- P