0

Hello! This is my first post. :)

Is it inappropriate to place many <input type="hidden".... to submit?

Here's an example:

<form action="/" method="post"><input type="hidden" name="ad" value="0x2443ae42"><input type="hidden" name="ad" value="0"><input type="hidden" name="ad" value="3"><input type="hidden" name="ad" value="test"><input type="submit" value="apps"></form>

Some browsers seem to not send back all the data. My guess is, forms aren't the proper way of sending a stack back to the server.

Thank you very much!

Edited by >>> isaac = []: forgot to say thanks

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by >>> isaac = []
0

It is fine to have multiple hidden values inside a form. The problem is that you have multiple hidden values with exactly the same name but different values. I am not sure how you retrieve your data on your server side. You could use different name for different hidden value.

Edited by Taywin: n/a

0

Pretty cool idea. Though I haven't tested this idea yet I like it.

Normally when I submit values under the same name my server builds a stack. What you're saying is, this is not a common method of using forms. Some browsers might only send one value with that input name.

I think that's good enough to be solved. I'll figure it out.

Thanks a ton!!!

Edited by >>> isaac = []: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.