Solved

urgent submit question??

Posted on 1998-09-14
5
193 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ouput in html in powershell 2 33
really easy css change help please 4 36
Bootstrap 3 - Style a dropdown 1 28
Scroll 5 news at a time using vticker 2 13
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

696 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