Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP $_SERVER variable to get what was sent through POST
Old 03-16-2011, 03:03 PM PHP $_SERVER variable to get what was sent through POST
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Is there a $_SERVER variable I can use to see what was sent through a form? For example, if I have a form, and I want to log what a user submits through that form in a separate file, what could I do?

Example:

User types in their username/password in a form
Script intercepts that data, and records it to a file (all but password, of course )

Thanks!
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2011, 03:04 PM Re: PHP $_SERVER variable to get what was sent through POST
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
$_POST['key']
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-16-2011, 03:09 PM Re: PHP $_SERVER variable to get what was sent through POST
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
I know I could do that, chrishirst xD

Basically I'm making a script that will sit in one file and watch what people send to and from the server. It intercepts it, writes it to a log file, then sends it on it's way.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is online now
Reply With Quote
View Public Profile
 
Old 03-16-2011, 03:37 PM Re: PHP $_SERVER variable to get what was sent through POST
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
If you only want to record from one form (or a couple) and you have access to the processing code, do it in code. If lots of forms or no code access, either access all network traffic or do it with an Apache plugin (so no longer a php question).
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 03-16-2011, 03:40 PM Re: PHP $_SERVER variable to get what was sent through POST
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Ah, ok thanks Paul!
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP $_SERVER variable to get what was sent through POST
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40219 seconds with 12 queries