Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP corrupting data on form submission

Status
Not open for further replies.

besclavon

Programmer
Joined
May 2, 2004
Messages
7
Location
US
One of my variables "link1" that is storing a bunch of urls is having random lines being duplicated on form submission. I just recently swithed servers from a PHP 4.3.3 to a 4.2.2 version. This error has only started appearing on the new machine. The script worked fine on the old server and still does on the test server. Any ideas? I think it might have to do with the ini config. i am stumped. here is a link to my code.

 
What do you mean by 'corrupting'? Can you provide examples?


Bastien

Cat, the other other white meat
 
Your URL's don't work. 404 - not found.
 
sorry- they were html extensions - now they work
 
I can see that things start looking different about 20 lines down, but without seeing any code that creates the array there's no way to offer any help.
Did you compare the output of the phpinfo() on the two servers?
 
i linked to this at my first post. this is the whole code for the page. i am not actually ripping this to an array. Oddly, if i take data from a file with fopen(), it is displayed right the first time. Then after any sumbission in which i dont populate the textarea from the file, the data goes bad. It is actually the process of submitting the data between the form that screws it up.
 
Have you noticed that magic_quotes_gpc is set to ON in the Apache 1.3 (old server) and OFF on the Apache 2.0 ?
Try to set set_magic_quotes_runtime to ON and see what happens to the posted data.
 
a few hours ago it was on, but i turned it off. i just turned it back on to test to make sure, and it still messes up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top