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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.