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>

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

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

Delete all files in folder except with certain name
I have a script that I want to delete all files in a folder (taken from a database) except for one n

"SEO" URLs
Hey, I'm wondering how to go about creating and using these types of URLs. I'm presuming it's PHP th

PHP Surveys
I really would like some advice.

If you have a client come to you asking for a survey to be d

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

How to read CSS message data
Hi,
I have a requirement here. When working as a Dev angel for multiple customers its really di

SAP FICO learning materials
Hi all,
I am new to this world of SAP FICO. I have taken training on SAP FICO, but was wonderin

Basic Forum Tutorial
Hi, I'm new to PHP. I want to build a basic forum for my site using PHP and MySQL. I've searched t

Gaining access to Drop Down Menu Variable
code is below, I am creating a drop down menu. I want to echo the value selected in the drop down me

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

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