![]() |
Weird States Dropdown Problem
Hi All,
I'm having a strange issue with my state dropdown menu on my registration form. It shows the correct states, but then after the last state you can select two strange options.. "forEach" and "array". There's also a bunch of blank spaces after those weird options at the bottom. Here's the link: http://eternitywebdev.com/~klingers/register.php I've checked the database multiple times and definitely don't see either array or foreach in my states table. Any ideas? |
Re: Weird States Dropdown Problem
Quote:
Foreach is used to load your options in the first place Post the Code for the page. What's probably happening is that your list isn't ENDING and includes the ending statements as options |
Re: Weird States Dropdown Problem
Here's my register_billing_addres.tpl file which displays the states dropdown (not sure if this is what you are asking for though.. I'm not sure what php file the states stuff is programmed into):
Code:
{* |
Re: Weird States Dropdown Problem
Please include these files, I think this is where you'd be able to find the problem
main/states.tpl main/register_states.tpl |
Re: Weird States Dropdown Problem
Here's my states.tpl:
HTML Code:
And here's my register_states.tpl: HTML Code:
I don't think I've touched either of those (although when I installed xcart I did forget to add the states table so I had to add it later to my DB.. perhaps something happened when i created it, but I definitley make the table exactly as it is in my other stores via a mysql import.) Thanks so much for your help on this. |
Re: Weird States Dropdown Problem
Maybe it copied over differently. It doesn't seem to be a problem in any of these files. I would play around with the foreach tags inside of your register_billing_addres.tpl and seeing how it changes your page. If anything changes you'll know what is causing the change.
If nothing changes than this is a dead end :( |
All times are GMT -8. The time now is 02:15 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.