Jump to content

Problem getting a value back from a $_POST array


j.smith1981

Recommended Posts

I cant for the life of me remember what to do here, as I am in a bit of a rush to get the majority of this annoying report done, I thought I would ask you guys, since you've always come back with a good response.

 

Right I have this in a bit of html:

 

posted_data[status]

 

I want it to come back with a true value like in an SQL statement for MySQL like:

 

WHERE status = '$status'

 

Would output as:

 

status='C'

 

Would be the end result, I just am racking my brain at the moment trying to remember, the person to come back with this one would be the best person in the entire world!!!

 

Kind regards,

Jeremy.

I don't understand the question, are you saying that your html is...

 

<input name="posted_data[status]" ... />

 

...and you want to know how to access it in the $_POST array or in PHP? Or are you saying you  have a variable called $posted_data and you wish to output the value which has a key of 'status', or are you saying you wish to use $posted_data['status'] in your SQL query? Or what?

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.