Jump to content

Load or redirect to a page


biwerw

Recommended Posts

I have a script that takes input from a form and creates a .html file based upon what was entered. I would like for the end result to load the created page in the browser.

 

I can't seem to find the correct code to do so.

 

Any help would be great.

 

Where is the created page? Is it hosted on the server as well? If so and you have the link to it then you can just use the header function:

header('Location: http://www.yoursite.com/htmlfile.html');

That should work however I'm using one of the input variables from the form to create the name for the .html file so each time would be different.

 

How would I use a $info inside the code you provided? Below is what I attempted, but failed.

 

<?php header('Location: "$cuidnumber".html'); ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.