Solved

urgent submit question??

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Newbie CSS questions 4 27
Powershell output to HTML 1 29
HTML Lists 3 29
Flexbox in CSS3 2 27
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now