Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: fread() help!

  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    fread() help!

    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??

  • #2
    Regular Coder
    Join Date
    Apr 2004
    Location
    Los Angeles
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:
    PHP Code:
    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>)

  • #3
    New Coder
    Join Date
    Mar 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no.2

    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?

  • #4
    Regular Coder
    Join Date
    Mar 2004
    Location
    Jackson, Georgia
    Posts
    102
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Designer's Toolz; Web & software development community.

    Get your coding questions answered:
    DTZ Forums


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •