|
-
Jul 23rd, 2003, 09:31 AM
#1
Thread Starter
Fanatic Member
form values |RESOLVED|
how do i include a hidden value ina form that is the value of a select box from another form. I.E
this is my form
VB Code:
<form name="period">
<select name="period" size="1">
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
</select>
</form>
and then in another form I have:
VB Code:
<form action="orion_s002.asp" method="post" name="form1" target="_self">
<input type="hidden" name="F_PROFILE" value="<%response.write V_PROFILE%>">
<input type="hidden" name="F_ACCESS" value="<%response.write V_ACCESS%>">
<input type="hidden" name="F_PERIOD" value="javascript:document.period.value">
this doesnt seem to work however and passes javascript:document.period.value as a text string. what am i doing wrong
Last edited by davebat; Jul 24th, 2003 at 01:23 AM.
-
Jul 23rd, 2003, 02:42 PM
#2
Stuck in the 80s
Try something like:
Code:
<form name="period">
<select name="period" size="1" onChange="document.forms('form1').F_PERIOD.value=this.value">
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
</select>
</form>
I tested it and it works (IE6), but I'm not sure if it's valid in all browsers.
-
Jul 24th, 2003, 01:23 AM
#3
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|