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

storing video files into mysql in php
hi

i have my video files in my folder ,
i have to store the path of the videos into db an

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

Problems generating word documents on server side for security reasons
I have a problem with word documentation generation when generating a word document (docx) with PHP.

I got my hosting suspended XD
So I saw this challenge a day or so ago

http://www.programming-challenges.com/pg.php?page=dow

problems with php variables in mysql query
i can't seem to get the following query to work.

select $q1c from $vote_rate where id = $re

help finding hacking loopholes
i was attacked by a redirect php injection

my pc is clean of viruses

so i figure that

Loop Through Date Range
Hi guys,
I have date range as parameter like 01/JAN/2009 TO 16/JAN/2009 now i want to loop thro

Undefined Variable: PHP_SELF, pls help
Hi,

Im a newbie on PHP / MySQL programming and Im running a script to search one field on my

Parse error: parse error in C:wampwwwlogspagesmembers.php on line 16
I dont see the problem with this, I always get Parse error: parse error in C:wampwwwlogspagesme

Logic question
im wondering what's the best method to do the above list:

it is for alliance @ MMORPG game

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