?
Solved

urgent submit question??

Posted on 1998-09-14
5
Medium Priority
?
195 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

800 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