Solved

link to a page that will auto complete a field

Posted on 2007-04-06
8
133 Views
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 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.
0
Comment
Question by:cstans
  • 4
  • 3
8 Comments
 

Author Comment

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

Expert Comment

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

Accepted Solution

by:
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:

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
 

Author Comment

by:cstans
ID: 18875658
Yes Gamebits, I do have access to the form page.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:cstans
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?
0
 
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.

0
 

Author Comment

by:cstans
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.
0
 
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Angular 2 login page 4 70
Bootstrap more than 12 columns in row 3 36
Synchronizing CSS load 3 29
insert text field data into html script 13 18
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

932 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

8 Experts available now in Live!

Get 1:1 Help Now