PDA

View Full Version : Form submission problem


Matrix
11-28-2002, 01:43 PM
Hi Guys ... I posted a question about form submission on the HTML forum a few days ago, but was not able to resolve the problem without reducing the size of my form.

Basically, I have quite a large shopping form which I'm trying to submit. I don't think there's anything wrong with the form, but the file is 187K (112 products with pics!) and it won't submit - I have 5 or 6 other forms on the site that work fine. I am also having intermitant problems, where I get the "Page not found" error ... don't know why this is happening either - the page is definitely there.

The link is here : http://www.tummitime.com/beta/shopping_members.php

which you can go directly to, or via the member/visitor form that is the normal entry to it at http://www.tummitime.com/beta/memberlogin.shtml

To test that the form structure is OK, I sequentially deleted tables in the form (they divide the product groups) and tested the submit function - when I'd deleted over half the tables, hey presto it worked.

My (long-winded!) question is : can this be avoided by using a server side submit function in PHP??

Alternatively, if anyone knows of a size limit that may apply - please advise!

Thanks in advance,
Matrix.

raptori
11-28-2002, 02:15 PM
i don't know the size limit and/or the problem but if i were you i would make the products in two pages. because you have too many things there. so try that and see if it works. if it dosen't then someone lese will help you here.

Ökii
11-28-2002, 09:20 PM
try changing method="get" to method="post"

get has a restriction on the amount of data that can be passed through the url, something like 256 bytes or somesuch. post doesn't have that restriction.

you might need toi change the way you access the data on the receiving page though.

Matrix
11-28-2002, 11:40 PM
Wooo Hooo !!

Thanks Okii ! That did it ... live and learn - I didn't know about the size or character restriction on the GET function; I think that it's more because of the number of hidden parameters than the actual physical size of the file ...

Cheers,
Matrix.:thumbsup: