Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to get the value of radio
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
夜帝  
View profile  
 More options Feb 17 2012, 10:25 pm
From: 夜帝 <tonghu...@gmail.com>
Date: Sat, 18 Feb 2012 11:25:55 +0800
Local: Fri, Feb 17 2012 10:25 pm
Subject: Re: How to get the value of radio

But I printed this result,It was garbled like follows:
Print:
io:format(Req:post_param("sex"))
Result:
“0â€

2012/2/17 chan sisowath <chan.sisow...@gmail.com>

> something like

> toto('POST', []) ->
>   Sex = Req:post_param("sex"),

> 2012/2/17 夜帝 <tonghu...@gmail.com>

>>    Html code:
>>      <form method="post">
>>        <label><input type="radio" name="sex" value=“0”
>> id="male"/>male</label>
>>        <label><input type="radio" name="sex" value=“1”
>> id="female"/>female</label>
>>        <input name="submitBtn" value="submit" type="submit" />
>>       </form>
>>    Like this form,How to get the value of the checked radio in controller?

--
我踏月色而来!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.