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

Web Application Recipe
Hi Guys!

I am working with the Web Application recipes. I am currently working on the sen

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

in php, link returns to the line
When I add a link in a php page, the link word returns to the line (as a
would do)

Examp

calendar dates and hours compare problem
i have a calendar in wordpress, everything works great except that i can make 2 meetings at the same

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

Dynamically allocating the number of rows in a table based on a variable value
Hi,
I have situation here which i cannot resolve, I have a variable temp which stores the num

Is there a function ... auto send IP
Is there some function that can be sent to a ddns service that returns the ip address of a ddns forw

Undefined offset
The following script checks to see if the user answer matches the correct answer.

Form Fiel

Auto-populating dropdowns and multiple forms.
Here's what I have so far:

First drop down = select a state (works)
This populates the sec

Clean URLs
Hi I was wandering if anyone has ever implemented URLs on their PHP run website using URLS like wiki

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