j.smith1981 Posted March 5, 2010 Share Posted March 5, 2010 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. Link to comment https://forums.phpfreaks.com/topic/194266-problem-getting-a-value-back-from-a-_post-array/ Share on other sites More sharing options...
cags Posted March 5, 2010 Share Posted March 5, 2010 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? Link to comment https://forums.phpfreaks.com/topic/194266-problem-getting-a-value-back-from-a-_post-array/#findComment-1021996 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.