APACHE?HTML data corruption on form submit errors
I have a page that people (without technical knowledge) can upload and change news web links (via the php script) dynamically. It has worked fine on our other server, but this week we changed servers and now it doesnt. What it is doing is replicating the links (in no order - its not like my var is just getting duplicated) so that there are many duplicate links, but not all of them are. The links are stored in a textarea and when the form is submitted, the links get messed up. i have 2 other pages that are doing the same thing. (they arent links. they are just text) if i click submit,(it submits to it's self) it takes the good links and runs it through a php function where the are recorded in a database. then the form is refreashed
and the links go bad. when i comment out the recording part, just going to an empty function still makes it do it. If i just hit the refreash button in the browser, it doesnot occur. i am stumped as to why this is occuring. it
is not a special char in the list itself. i think the problem has to do with when the form is submitted, the data is changed.
http://host107.ipowerweb.com/~madpundi/bad.php
here is the link to the source. i made a submit button that does nothing, other than submit and refreash the form. when you click it, it makes the "link1" textarea data go bad.
Suzanne posted this at 20:37 — 2nd May 2004.
She has: 5,507 posts
Joined: Feb 2000
did your version of php change?
I notice you're not using $_POST['var'] and are using things like $_DOCUMENT_ROOT instead of $_SERVER['DOCUMENT_ROOT']
besclavon posted this at 22:30 — 2nd May 2004.
They have: 4 posts
Joined: May 2004
i did go back from like 4.3.6 to 4.2.2 - i will try the $_POST['var']'s too. I was about to print out both the old and new ini's and compare them, to see the differences.
besclavon posted this at 22:46 — 2nd May 2004.
They have: 4 posts
Joined: May 2004
i have inter changed the $_POST['var']'s and the text area is still randomly duplicating data. Is there anything that might cause that depending on the config file?
besclavon posted this at 22:48 — 2nd May 2004.
They have: 4 posts
Joined: May 2004
i am going to recomplie php from source (the colocation facility used a RH rpm) and use the standard ini. I can never get the rpms to run without errors on all my machines.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.