Jump to content

quick way to put $_POSTs in to variables


unistake

Recommended Posts

is there a quick way to put $_POSTs in to variables securely without using

extract($_POST); !!?

 

the only other way i know is

 

$user = $_POST['user'];

$reg = $_POST['reg'];

etc etc

 

are there any other ways. eg put all $_POSTS in to one array or something?

cheers once again

Link to comment
https://forums.phpfreaks.com/topic/142879-quick-way-to-put-_posts-in-to-variables/
Share on other sites

dont ask me!

 

gevans:

i am going to put the variables in to a INSERT query and send to mysql.

 

I dont really have a clue with arrays and how they work. Ive just been told that extract $_POST is dangerous and creates an open door.

do you have any ideas for what i need to do?

 

I have lots of posted information, that i need to put in to an INSERT query

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.