Hi,
I have form where users can enter information such as their zipcode to get some information back about it. However, the page that my form submits to only accepts data in a particular format, such as "ZIPCODE.USA.ZIP = 96822", where 96822 would be the value entered by the user.
I guess what I need to do when the user hits submit is take their input information, format it appropriately, and then submit it to the receiving page.
I'm thinking it will be in this general format...
<script type="text/javascript>
<!--
function submit(){
do stuff to append (concatenate?) together the various elements of the form into a single query readable by the 2nd page....
-->
</script>
<form name="form1" method="post" action="Query.html">
<input name="queryValue" size="70" type="text" id="queryValue">
<input name="stringStart" size="70" type="hidden" id="queryString" value="ZIPCODE.USA.ZIP =">
<input type="button" onclick="javascript: submit();" >
</form>
As you can see by my question, I'm not really good with javascript...
Thanks for anything!
g
I have form where users can enter information such as their zipcode to get some information back about it. However, the page that my form submits to only accepts data in a particular format, such as "ZIPCODE.USA.ZIP = 96822", where 96822 would be the value entered by the user.
I guess what I need to do when the user hits submit is take their input information, format it appropriately, and then submit it to the receiving page.
I'm thinking it will be in this general format...
<script type="text/javascript>
<!--
function submit(){
do stuff to append (concatenate?) together the various elements of the form into a single query readable by the 2nd page....
-->
</script>
<form name="form1" method="post" action="Query.html">
<input name="queryValue" size="70" type="text" id="queryValue">
<input name="stringStart" size="70" type="hidden" id="queryString" value="ZIPCODE.USA.ZIP =">
<input type="button" onclick="javascript: submit();" >
</form>
As you can see by my question, I'm not really good with javascript...
Thanks for anything!
g