link to a page that will auto complete a field

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 http://ipx1031.com/cd/ the field is the promo code. I tried to search for the answer here but could not find anything that I could use.
cstansAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cstansAuthor Commented:
Please note that I will give more points if i see that it is not as simple as i looks.
0
gamebitsCommented:
Is it your page or is it somebody else page? I mean do you have access to the code on this page.
0
Steve BinkCommented:
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:

http://mydomain.com/use-promo-code.php?code=blah

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;?>">
</form>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

cstansAuthor Commented:
Yes Gamebits, I do have access to the form page.
0
cstansAuthor Commented:
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?
0
Steve BinkCommented:
If you have PHP properly installed and configured, yes.  Ask your host about PHP on your web servers.

0
cstansAuthor Commented:
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.
0
Steve BinkCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.