Posting Serialized Data Not Working


Posted on 16th Feb 2014 07:03 pm by admin

I am trying to send an object from one PHP file to another using POST. I serialize the object and then add slashes. For some reason, only part of the data is getting through. It appears to be a problem with the slashes. Here is the HTML that is generate in the sending PHP file:

<select name="match3"><option value="O:19:"teacher_student_match":3:{s:7:"sess_id";s:2:"67";s:7:"stud_id";s:2:"10";s:6:"tut_id";N;}">Rodriguez, Jorge</option></select>

Did you know?Explore Trending and Topic pages for more stories like this.
In the receiving file, I get the following for $_POST['match3']:

O:19:\

So I am not getting the full string that I am trying to send.

Anyone know what might be going wrong?
No comments posted yet

Your Answer:

Login to answer
227 Like 44 Dislike
Previous forums Next forums
Other forums

Stuck with preg_replace
Hi,

I'm trying to use preg_replace to remove part of the IP address submitted using a form on

Results from Db outputted twice
Hey guys.. for come reason my data is outputted twise shown in the image below and i cant figure out

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

Auto install
Hi I have a directory lets say "apps" that I then have more folders ie "email",

Oracle11g Patch issue
Hi all,

I'm getting the following error while installing Oracle11g Patch 11.1.0.7.0 on IBM-AI

PHP MySQL Return Results Issue
Hi guys,

I'm running joomla and made a module which is using ajax.
Basically i just have a

error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

Email to a friend script problems
I have this send-to-a-friend script with 2 issues:


1) When you open the form popup on a p

Displaying Column Names
I have a question regarding the ability to show the column names from my table/query.
What I'm lo

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash