Link to home
Start Free TrialLog in
Avatar of rvsamuel
rvsamuel

asked on

urgent submit question??

hi,
I have a page which has links and no buttons.I have to post the values of htm1 to htm2 without using submit buttons but by links in the page.I'm using VBScript.This is very urgent,please help.
Avatar of nchalasa062698
nchalasa062698


 This is the link you have to have on htm1.
<A HREF="htm2?var1=value1&var2=value2" > Text on htm1</B></A>
         


When you say post do you mean do what the button submit would do if it were in a POST form (contrary to the GET).  Please explain yourself further.
if use javascript , it will be easy either use the post or get method.
I will only offer a javscript suggestion.  You can actually call a function like this in your html.
<A HREF='javascript:subit()'>
Th function can look something like this.
function subit(){
  //.....  
  document.forms[0].submit();  //forms[0] is first form on page
  //.....
}
the form should have an method=post parm in the form tag. I am sure something very similar must exist in VBSCRIPT.  If not, you can use both VBSCRIPT and JAVASCRIPT in the same page.
ASKER CERTIFIED SOLUTION
Avatar of WolfgangRitter
WolfgangRitter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial