sysadmin07
IS-IT--Management
Hi,
I'm currently working on a website consisting of three frames. The first frame contains a textbox and a submit button. When the user enters a zip code and hits "submit," search results are shown on the second frame (this is working okay and I don't need help with that, just an FYI). What I'd like to accomplish though is that when they hit the submit button, I'd also like their search terms to be entered onto a third frame's text area so that they can see their prior searches. Thus far, I have it set to output a string when the "submit" button is clicked, but would like to figure out how to change this to output the zipcode entered into the text field in the first frame.
I appreciate any comments. Thanks.
Here is my code for the form of the search box thus far:
Here is the code for the form of the third frame that I'd like to output the search terms to:
I'm currently working on a website consisting of three frames. The first frame contains a textbox and a submit button. When the user enters a zip code and hits "submit," search results are shown on the second frame (this is working okay and I don't need help with that, just an FYI). What I'd like to accomplish though is that when they hit the submit button, I'd also like their search terms to be entered onto a third frame's text area so that they can see their prior searches. Thus far, I have it set to output a string when the "submit" button is clicked, but would like to figure out how to change this to output the zipcode entered into the text field in the first frame.
I appreciate any comments. Thanks.
Here is my code for the form of the search box thus far:
Code:
<form TARGET="mapFrame" METHOD="POST" ACTION="results2.cfm">
<table width="266" cellpadding="1" cellspacing="3">
<tr><td colspan="3"><span class="style1 style1">Enter city (without the state) or
zip code </span></td>
<tr>
<td width="154"><input type="TEXT" name="Textbox" /></td>
<td width="56"><input name="submit" type="submit" value="Search"
//Section that outputs the word "submit" to my search terms frame. I'd like to
change this to the value(s) entered in the search box
onClick="parent.resultsFrame.document.form1.text1.value=submit"/></td>
<td width="40"><input name="RESET" type="RESET" value="Reset" /></td>
</table>
</form>
Here is the code for the form of the third frame that I'd like to output the search terms to:
Code:
<FORM name="form1">
<INPUT type="text" name="text1" size="25" value="">
</FORM>