View Full Version : fread() help!

04-02-2004, 10:20 PM
hi all, i have a script that saves the contents into a txt file in a directory, now i want once the file is submited to go 2 a thankyou page! + one the user clicks off that i want it to automatically update the html on the pages so the links will be added to that textfile? can this be done??

04-02-2004, 11:58 PM
When you say "automatically update the html on the pages so the links will be added to that textfile" do you mean:
1. Update the html so the links come from the newly saved text file?
2. Have the links in the html file saved to a text file?

As for the thank you page you can post the form back to itself, process php code, then issue:

header("Location: thankyou.php");
Just be sure to do this before you print or echo anything to the browser otherwise you'll get an error.

The easiest thing is just post directly to the thank you page (ie <FORM method=post action='thankyou.php>)

04-03-2004, 12:56 AM

but whith the header thing i have the for function and all that so when do i put in the code i want it to show, i have no idea about what ur saying (sorry but i suk at PHP) but hel can i just make it redirect to another page once it is done wouldent that be a little easier?

04-03-2004, 01:33 AM
Just a couple of things...

First of all what does the title of this thread have to do with the fread() function?

What you said makes absolutly no sense whatsoever

Since when was " for function " a function? I thought it was a loop. Scary :confused: