hi guys... been playing around with HTML and such over the past few days. Had some spare time. Installed Apache, etc. anyways, I'm having problems getting data to pass from one html page to another. What I am wanting is the following:
I've got a page that allows you to select one of two radio buttons. upon selection, I want the page to be refreshed (so you can select again) and "you chose 1" (or 2) to be written up top. Before selecting anything, maybe something like "no choice yet". I'm also trying to get it written to a file, but I'm more concerned about the refreshing problem.
Anyways, this is what I have so far.
try.html
<form action="try.html">
<input type="radio" name="test" value="1" onclick="this.form.submit( );">1
<input type="radio" name="test" value="2" onclick="this.form.submit( );">2
</form>
Its something simple, but the searches I've done have not been to helpful so far... I figured someone might know, and save me another 5 hours of searching LOL. All this does is refresh the page.
I've got a page that allows you to select one of two radio buttons. upon selection, I want the page to be refreshed (so you can select again) and "you chose 1" (or 2) to be written up top. Before selecting anything, maybe something like "no choice yet". I'm also trying to get it written to a file, but I'm more concerned about the refreshing problem.
Anyways, this is what I have so far.
try.html
<form action="try.html">
<input type="radio" name="test" value="1" onclick="this.form.submit( );">1
<input type="radio" name="test" value="2" onclick="this.form.submit( );">2
</form>
Its something simple, but the searches I've done have not been to helpful so far... I figured someone might know, and save me another 5 hours of searching LOL. All this does is refresh the page.