Search Engine in URL issue

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 3, 2012   (RSS)

Re: [benedict] Search Engine in URL issue

By Jason - July 3, 2012

Hi,

Yes, you are allowed to give fields the same name. When a form submits, the name of the field becomes an index in the $_REQUEST array. If you have multiple fields with the same name, you end up overwriting these values. The value you are probably getting is the value of your last region box.

The best option here would be to have a single region box, whose options are updated based on a state selection. You can do this with the jquery get() function:
http://api.jquery.com/jQuery.get/

If this doesn't work, you can try using display block and display none to try to keep multiple values from submitting

example:

$('#' + fieldsetName).css('display', 'block');

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/