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 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2012
    Posts
    61
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Need help with posting (something i want)

    Hi, i'm not Experienced in php at all so i was wondering if someone can help me out.

    Anyways, i'm looking for (or you can give me a link that shows me what to do if you find one) where you enter a name into a filed & that will LOG a name onto a text file on your webhost & then it will redirect you to another link afterwards.

    thanks if anyone can help!

  • #2
    Regular Coder Redcoder's Avatar
    Join Date
    May 2012
    Location
    /dev/null
    Posts
    332
    Thanks
    2
    Thanked 47 Times in 46 Posts
    Check this file handling links out - they'll show you how to write to open and write to text files:


    http://php.net/manual/en/spl.files.php
    http://davidwalsh.name/basic-php-fil...d-close-delete

    For redirection, see the following:


    http://php.net/manual/en/function.header.php


    For redirection, take care not to send any headers before redirection like echoing out something. And after header(''); use exit() right after it.
    Last edited by Redcoder; 11-07-2012 at 12:50 PM.


  •  

    Posting Permissions

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