Forum Moderators: coopster

Message Too Old, No Replies

REPOST Form submission broken

         

PSWorx

7:49 pm on Dec 14, 2005 (gmt 0)

10+ Year Member



This is a repost from one i sent yesterday, this time i should be able to explain in a bit more detail, first things frist...

Ive been reading up on known issues with both the free and paid hosting for lycos and found a fair few posts stating something along the lines of (Taken from (http://www.vbulletin.com/forum/showthread.php?t=145264) Second to last post):

"You need to find a professional web hosting server..."

The problem (In detail):

I have three sections to a Shop Management page

* Categories

* Subcatgories

and

* Products

Each section has 2 or more forms for submission to access DATA associated to the forms POST request or to update the database with the submitted DATA once verified.

----------------------------------------------------------
Symptoms:

When using the categories management forms (and also the Site Setup page forms) everything works as expected, i am using the following statement to display the array of POST vars:

* print_r($_POST);

As expect everything shows up correctly

I can use the NEW PRODUCT button (Memeber of the Products management section) to bring up the new product form, from here i can go back and use the Categories management section (and Site Setup page/forms) without any problems

As soon as i submit any other buttons related to the Subcategories and Products management sections (Except for the NEW PRODUCT button) the output of:

* print_r($_POST);

Contains either:

Where X is a number -> Array ( [catLink] => X )

OR

Array ( [catLink] => ) <<Nothing in the variable>>

OR

The POST data from the last successfully submitted FORM

Ive prepared a basic table showing the POST array contents when clicking working buttons to non working buttons and back again (The order they are show is the order they were clicked - Where there is a gap between clicks this means i have logged out and in again to reset the usability of the FORMS - mentioned below).

CLICKED ON¦RESULT IN POST ARRAY
------------------------------------------------------------------------------------------
view subcategories¦Array ( [catLink] => 3 [viewSubCat] => View ) <<Chose vibrators>>
view subcategories¦Array ( [catLink] => 3 ) (Should be same as above)
¦
¦
View categories¦Array ( [viewCat] => View Categories )
view subcategories¦Array ( [catLink] => 2 [viewSubCat] => View ) <<Chose DVDs>>
View categories¦Array ( [catLink] => 2 ) <<Should be same as previous attempt>>
¦
¦
View categories¦Array ( [viewCat] => View Categories )
Add category¦Array ( [name] => NAME [menuOrder] => [subCatLink] => [subCatStyle] => [addCategory] => ADD )
View categories¦Array ( [viewCat] => View Categories )
Add Subcategory¦Array ( [name] => NAME [catLink] => 2 [MAX_FILE_SIZE] => 10240000 [menuOrder] => [addSubCategory] => ADD )
Add Subcategory¦Array ( [catLink] => 2 )
¦
¦
New Product¦Array ( [newProduct] => NEW PRODUCT )
View categories¦Array ( [viewCat] => View Categories )
New Product¦Array ( [newProduct] => NEW PRODUCT )
Add Product¦Array ( [name] => [supplierCode] => [catLink] => [subCatLink] => [information] =>
[color_1] => [color_2] => [color_3] => [size_1_type] => [size_2_type] =>
[size_1_1] => [size_1_2] => [size_1_3] => [size_1_4] => [size_1_5] => [size_1_6] =>
[size_1_7] => [size_1_8] => [size_2_1] => [size_2_2] => [size_2_3] => [size_2_4] =>
[size_2_5] => [size_2_6] => [size_2_7] => [size_2_8] => [MAX_FILE_SIZE] => 10240000
[prodLink_1] => [prodLink_2] => [prodLink_3] => [rating] => 0 [price] => 0.00
[reducedPrice] => 0.00 [addProduct] => ADD ) <<All entries are empty as did not set them>>
View categories¦Array ( [catLink] => )

NOTES:

When i navigate away from the Shop Setup page, to the Site Setup Page (uses a GET request to display the associated contents - Also using print_r($_POST); for output on the Site Setup page) the $_POST array still contains data from the last submitted form which broke the FORMs submitability (At this point the POST data should no longer exist as i have navigated to a different page).
Also note that once a form is submitted which breaks all other FORMs submitability, it constantly displays the last working forms POST data as the current DATA in the array. (Again using print_r($_POST); to get the DATA)

I have also noticed, when i log out from the admin area and back in again (session based login - dont see how this would affect the usability of a FORM), any of the forms renderd useless will work again untill i submit one of the non-working forms.

If anyone can shed some light on the situation i would be greatful to the end of the sun (LOL) as this or perhaps Lycos has eaten away at any free time ive had this week. :-¦

TIA

P.S. Not sure if i can do this, <stickymail poster for example urls if desired - jatar_k>, if this is not allowed to be shown can someone inform me of a way to share a contact with someone from here so they can see for them selves the sites issue on the Lycos server and compare it to the non-issue on another remote server (NOTE: the exact same files have been uploaded to both servers and the issue only exists on the Lycos server (I have uploaded and tested on two different lycos accounts, same problem exists) - Also i have tested site on two Development machines with which i ran into no problems.)

My thoughs:

When one of the DODGY buttons is submitted the first time round, it sends the POST data correctly, after which no forms at all will work as the POST data is locked to that of the LAST working submission... I personaly feel this is a server related issue altho im not knowledgeable enough on this to say for sure.

TIA Again

[edited by: jatar_k at 8:06 pm (utc) on Dec. 14, 2005]

PSWorx

9:16 pm on Dec 14, 2005 (gmt 0)

10+ Year Member



Appoligise for the messy presentation of the last post, but just to add to that, there surely must be a server issue as when ever i hit a link to change page in the admin section or anywhere else on the site to be honnest, the DATA from print_r($_POST); stays the same, so its not getting cleard, as it does on the other server when i change page.

Has anyone else experienced this before or does anyone have a reason/solution or anything else...

By the way, would the position of the submit button affect the way in wich the data is accepted?

TIA

PSWorx

1:03 am on Dec 15, 2005 (gmt 0)

10+ Year Member



Ok, so no one was too interested on that particular issue, once again ive solved it.

I guess its a mix of me being lazy, by not renaming the variable names for each form (Even tho the vars i had to rename were submitting the same data, and were for different forms, altho displayed on the same page - and all did work fine on other servers), and lycos being cheap with their PHP4u which i belive to be non-standard, thus unrealiable for sites of this nature (e-commerce) or is it just me?

Either way problem solved