» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2006, 12:54 PM
roy roy is offline
Junior Member
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
roy is on a distinguished road
Default Print out all POSTs

Hi

I know the $_POST[] variable contains all the variables that get posted to me. what i need to do is write all the variables in which get POSTed to a text file, but i dont know how to print out all the POSTs and also i need a way so tis like varname = varvalue kind of printing out. theres going to be alot of values

Thanks and bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 07-29-2006, 12:56 PM
froggish froggish is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
froggish is on a distinguished road
Default

Hi

Use print_r($_POST); for printing out POST array. For that specific senario you can use this code

foreach($_POST as $key=>$value)
{
echo $key . "=" . $value . "<br>";
} -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 07-29-2006, 12:59 PM
manglam manglam is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
manglam is on a distinguished road
Talking

Hey mate


If you're writing to a text file, you probably want "\r\n" instead of "<br>"

All the best -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to add posts to a phpbb table after moving servers. tanny MySQL Forums 3 02-13-2007 02:44 PM
Forums have crossed 10 K posts pumice Suggestions & Feedback 20 11-08-2006 06:55 AM
PRINT command from RSS feed charl PHP Programming and Tips 3 08-24-2006 02:12 PM
print the full path of script illingworth ASP forums and Tips 1 08-18-2006 02:10 PM
way to print selected msgs in gmail cena Google 2 07-21-2006 12:18 PM


All times are GMT. The time now is 06:44 AM.