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

Socket problem
Hello,

Earlier I posted about my problem with my socket script. It took up to 100% CPU usage.

Remove letter from numeric textbox
I have a textbox that will search the employee database by entering in the employee ID and it will r

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

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

If a form submits back to same page do you need to use $get
IM trying to pass page number and year that was selected back to the same page.

i have this c

Create multiple (n) arrays
Hi there,

I have the following need:

I have 2 arrays (coming from a databases)

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

Get last modified date of web page
Hai All,

In php how can i get last modified date of a give web page . I have tried to g

How do i use vars in an array
Hiya peeps!

How do I use a var in an array. You will see $id but it isnt working.


Warning: mysql_num_rows() expects parameter 1
When i add quote at the end of this link
example:http://localhost/articlemania/category.php?cid=3

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