link to a page that will auto complete a field

Posted on 2007-04-06
Last Modified: 2012-05-05
I don’t know how to create a link that will go to page that I specify and auto complete one field in a form. The page where the form is located is the field is the promo code. I tried to search for the answer here but could not find anything that I could use.
Question by:cstans
  • 4
  • 3

Author Comment

ID: 18867305
Please note that I will give more points if i see that it is not as simple as i looks.
LVL 28

Expert Comment

ID: 18867312
Is it your page or is it somebody else page? I mean do you have access to the code on this page.
LVL 50

Accepted Solution

Steve Bink earned 125 total points
ID: 18867655
You would have to use a server-side language to detect the variable.  In a PHP example, I could use this link on a web-page:

On my server, in a file called use-promo-code.php:

$code = $_GET['code'];
<form action="formhandler.php" method="post">
<input type="textbox" name="code" value="<?=$code;?>">

Author Comment

ID: 18875658
Yes Gamebits, I do have access to the form page.
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!


Author Comment

ID: 18882068
Hi routinet,
I never did php. Do i just open a notepad and do the code you gave me and save with an php extension?
LVL 50

Expert Comment

by:Steve Bink
ID: 18884435
If you have PHP properly installed and configured, yes.  Ask your host about PHP on your web servers.


Author Comment

ID: 18884586
Thanks for your help. I will close this since my company did not authorize to use this feature, but i will keep this is mind and try sometime soon.
LVL 50

Expert Comment

by:Steve Bink
ID: 18886968
You might want to look into CGI (Perl).  Most host companies allow some kind of scripting and chances are you can do this.  PHP is only one possibility.

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Swiper slider stops between pages 11 31
Grunt No Clean Targets 6 54
Powershell output to HTML 1 28
Simple Angular 2 login page 4 0
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 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

11 Experts available now in Live!

Get 1:1 Help Now