Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

urgent submit question??

Posted on 1998-09-14
5
192 Views
Last Modified: 2010-04-09
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.
0
Comment
Question by:rvsamuel
5 Comments
 
LVL 1

Expert Comment

by:nchalasa062698
ID: 1837677

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


0
 
LVL 1

Expert Comment

by:TAMC
ID: 1837678
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.
0
 
LVL 3

Expert Comment

by:zhongbing
ID: 1837679
if use javascript , it will be easy either use the post or get method.
0
 
LVL 2

Expert Comment

by:jamestthomas
ID: 1837680
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.
0
 

Accepted Solution

by:
WolfgangRitter earned 20 total points
ID: 1837681
Say the text box on htm2 is named "name" and you need to fill it in with the text "Clinton" and the other textbox is named "wife" and you need to fill it in with the text "Lewinsky".  You would use this:

<A HREF="htm2.html?name1=Clinton&wife=lewinsky">Click here...</A>

Why can't you use a submit button?  Please explain.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question