ronb Posted December 1, 2008 Share Posted December 1, 2008 Hi Ive trawled through the forum, but cant find an answer I would like to have a default state selected on the pull down menu, how do i do this the default country is done thanks Link to comment Share on other sites More sharing options...
ronb Posted December 16, 2008 Author Share Posted December 16, 2008 bump anyone ? Link to comment Share on other sites More sharing options...
rakimonmic Posted December 16, 2008 Share Posted December 16, 2008 you could add an if statement inside the loop which displays the states. and inside the loop, set the default atribute for that select option. Link to comment Share on other sites More sharing options...
ronb Posted December 16, 2008 Author Share Posted December 16, 2008 yep, i understand that - but how do i do it ? what do i put in the code ? Link to comment Share on other sites More sharing options...
ronb Posted December 18, 2008 Author Share Posted December 18, 2008 come on - surely someone must have the answer Link to comment Share on other sites More sharing options...
BryceJr Posted December 18, 2008 Share Posted December 18, 2008 come on - surely someone must have the answer Try this and make sure you backup always when making changes. In create_account.php, find the line: echo tep_draw_pull_down_menu('state', $zones_array); Change it to: echo tep_draw_pull_down_menu('state', $zones_array,'Colorado'); where Colorado is the default state in your drop down. Link to comment Share on other sites More sharing options...
ronb Posted December 18, 2008 Author Share Posted December 18, 2008 tHANKYOU Your a star !! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.