get form data to submit to another page using an url

Posted on 2001-06-28
Last Modified: 2012-06-21

<input type='text' name='newPrice'>

then I submit to a form thru an url as below
the above textbox will submit as the abc paramater

<a href="result.html?abc=.....">

Question by:adrianmak
LVL 22

Expert Comment

Comment Utility
<form action="results.html">
<input type=text name="abc">

<a href="javascript:;" onClick="document.formname.submit();return false;">


<a href="javascript:;" onCLick="this.href='results.html?abc='+document.forms[0]['newPrice'].value">

Accepted Solution

teacher_mod earned 5 total points
Comment Utility
accepting the obviously correct answer.

Community Support Moderator


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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to create an extensible mechanism for linked drop downs.
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…
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…

762 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

6 Experts available now in Live!

Get 1:1 Help Now