开发者

form radio button not passing value

开发者 https://www.devze.com 2023-03-18 14:49 出处:网络
I am failing to see why a small form with a radio button group fails to pass any value to a proce开发者_JAVA技巧ssing php page. I have posted the code at pastebin.com at this link: http://pastebin.com

I am failing to see why a small form with a radio button group fails to pass any value to a proce开发者_JAVA技巧ssing php page. I have posted the code at pastebin.com at this link: http://pastebin.com/GT5HDpuc and would be grateful if someone could point out why this is happening. Thank you

UPDATED all code at http://jsfiddle.net/xGrb9/3/


You need to have your radio buttons in a <form> element.

Encapsulate the radio buttons in the following:

<form method="post">
radio buttons go here

<input type="submit" value="submit" name="submit">
</form>


You would need to put those inside a <form method="post"></form> element and you need to also submit the page to get the from the PHP side..

You example code does not show either of those things happening..

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号