Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Collecting Anonymous data in PHP

Status
Not open for further replies.

misslilbit02

Programmer
Jun 25, 2005
8
0
0
US
Hi,

I have a question that I need help with...I have data coming across the URL from an outside source and I I don't know what the $_POST values are. Is there a way for me to get the information and put it into the database without knowing the values being past across the browser and if so how would I go about doing that?

I know you would have mssql_query("INSERT INTO DATABASE_TABLE(column1, column2, coulmn3) VALUES (value1, value2, value3)");

I know how to get the data through a loop but my confusion comes in where you input the values into the database. Without knowing the data how would you insert the values into the database?
 
you can't no.

what you can do, though, is serialize the $_POST superglobal and just store it in a single text field.

Code:
$postdata = serialize($_POST);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top