Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

urgent submit question??

Posted on 1998-09-14
5
Medium Priority
?
196 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
[X]
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
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 40 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

610 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