Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2012, 03:15 AM   PM User | #1
legendrock7
New Coder

 
Join Date: Sep 2012
Posts: 58
Thanks: 8
Thanked 0 Times in 0 Posts
legendrock7 is an unknown quantity at this point
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!
legendrock7 is offline   Reply With Quote
Old 11-07-2012, 12:48 PM   PM User | #2
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
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.
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk

Last edited by Redcoder; 11-07-2012 at 12:50 PM..
Redcoder is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:01 PM.


Advertisement
Log in to turn off these ads.