How to prevent page redirect?

Need script to do a URL auto-Redirect to by-pass a page that requries log-in.

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

    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

kcbjordan-ga at Google Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.