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
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
LVL 22

Expert Comment

ID: 6234155
<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
ID: 6374605
accepting the obviously correct answer.

Community Support Moderator


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Any Way to rotate banner ads from Commission Junction? 2 54
html form layout 4 49
How to get chosen background-color on every line? 10 41
html5 1 40
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
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. …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

740 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