Google Answers Logo
View Question
 
Q: Need script to do a URL auto-Redirect to by-pass a page that requries log-in. ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Need script to do a URL auto-Redirect to by-pass a page that requries log-in.
Category: Computers > Programming
Asked by: kcbjordan-ga
List Price: $15.00
Posted: 28 Sep 2004 11:20 PDT
Expires: 28 Oct 2004 11:20 PDT
Question ID: 407515
Problem: how do I create a straight path either by URL, web page
redirect, or by other means, that will accomplish the following:

1. Take visitors directly to this page: https://www.orderpopcorn.com/ AND; 

2. Automatically plug in AND submit the Order Key: "TE6642", so that
the visitor automatically lands on our popcorn order page, and not the
?plug in your Order Key, log-on page??

I have tried copying the URL of the destination (order page), however
since that page is created dynamically, using a static URL won't work.
(my first attempt at a non-working redirect
http://www.supportscouts.com ). So my second attempt at a solution is to
see if there is a script or code out there I can scavenge that would do the URL
redirect, AS WELL as enter the specific order key I need, and submit
it to land on my scouts order page, in one easy click.

I'm a cut-and-paste web page programmer, and don't know if there is
anything out there server or client side that could accomplish what
I'm trying to do.

P.S. This is for a good cause; Cub Scouts, a speedy answer will be
rewarded with a warm feeling in the cockles of your heart, as well as a modest tip.

Note: The target site will not provide me a direct link, nor are they
interested in changing the current way they operate the web site.
Answer  
Subject: Re: Need script to do a URL auto-Redirect to by-pass a page that requries log-in
Answered By: googleexpert-ga on 28 Sep 2004 20:34 PDT
Rated:5 out of 5 stars
 
Hi kcbjordan-ga,
It took me a while to get the redirect working until I noticed
there was a typo. :(

Anyway, it has been fixed :)

Please copy and paste the following into a new HTML document.
(example name: tester.html):

<html>
<body onload="document.frm.submit();">
<form action="https://orderpopcorn.com/index.asp" name="frm" method="POST">
<input type="text" name="ScoutKey" value="TE6642">
<input type="hidden" name="action" value="PostScoutKey">
<input type="submit" name="submitter" value="Submit">
</form>
</body>
</html>


Please let me know if you have anymore questions.
Thank you.

-googleexpert

Clarification of Answer by googleexpert-ga on 29 Sep 2004 18:10 PDT
Thank you very much for the tip.
I reallly appreciate it.

I see that the redirect is working with supportscouts.com;
However, I see some text that is out of place.  
Most notably, the ScoutKey and Submit button.

Instead of -->
<input type="text" name="ScoutKey" value="TE6642">
<input type="hidden" name="action" value="PostScoutKey">
<input type="submit" name="submitter" value="Submit">
</form>

You can replace it with the following -->
<input type="hidden" name="ScoutKey" value="TE6642">
<input type="hidden" name="action" value="PostScoutKey">
</form>

Good luck with supportscouts.com!

-googleexpert
kcbjordan-ga rated this answer:5 out of 5 stars and gave an additional tip of: $5.00
Loading the page as you listed below created a security error on the
3-4 PCs I tried to access the page on, however once I removed the "s"
from the HTTPS, the problem was solved. The target site must have a
redirect, and that cleared up Internet Explorers security issue.

I thank you for your quick response, and reward you with a modest tip. 

If you are in need of a place to spend that money, might I suggest my
sons Cub Scout Pack?   ;-)  Thanks to you we are successfully on-line
at http://www.supportscouts.com  !

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy