faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 26 people (69%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Is there anyway to redirect to a page and send it name/value pairs w/o using the querystring?
Anyway to submit a form without a form?

Jun 14th, 2000 06:07
unknown unknown, Jim Brinkman


I think this might be what you are looking for.

Have a form in your web page somewhere with only hidden inputs in it.  
Assign those hidden elements your values and then submit the form using 
javascript like document.yourform.submit(); from an event.


<script language="javascript">
function submitmyform(){
    document.yourform.submit();
}
</script>
------------------------------------------------------------------------
------
<form name="yourform" method="post" action="somepage.asp">
    <input type="hidden" name="var1" value="<%=form_variable1%>">
    <input type="hidden" name="var2" value="<%=form_variable2%>">
</form>
------------------------------------------------------------------------
------
<input type="button" value="submit" onClick="submitmyform();">



© 1999-2004 Synop Pty Ltd