Jump to content

I need some $_POST array help


delux247

Recommended Posts

basically I have multiple forms for multiple clients. I need to be able to add update and delete, the ad and delete are working fine but the update is not. i have narrowed the reason down the my $_POST array. The code below shows how I am doing my update.

if(isset($_POST['soq_references']))
{
$SCRUD = new CRUD('soq_references');
$SCRUD->setFieldsArray(array('type')); //set fields from database that need to be updated
new dbug($_POST['soq_references']);

foreach($_POST['soq_references'] as $id=>$reference)
{
	extract($reference);
	$SCRUD->newWhere("`id` = '$id'");
	$SCRUD->update(array($type));
}
}

 

when I do a dbug on $_POST['soq_references'] this is what I see, as you can see all of the values have \' before and \' after. I need help getting rid of these slashes and quotes.

post.jpg

 

Thank you in advance for any help regarding this matter. It is greatly appreciated. If you need more info just ask.

Link to comment
https://forums.phpfreaks.com/topic/144635-i-need-some-_post-array-help/
Share on other sites

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.