Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Code Problem


Code Problem

Reply
  #1 (permalink)  
Old 06-20-05, 06:45 AM
dinalsi dinalsi is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Code Problem

Hi,

I recently bought a script and it has a few bugs. The form below is supposed to allow the user to select the country, then the states woul populate based on teh country choice and the same for the city.


--------------------------
<fieldset legend="primary_address">
<input name="address1" max_length="128">street_address</input>
<input name="address1_2" max_length="128" required="0">street_address_2</input>
<input name="city1" type="select" table="states_cities" key="name" value="name" required="1" blankline="select_city">city</input>
<input name="state_one" type="select" table="states" store="value" key="id" value="name" blankline="select_state" required="1" otherattr="onChange=&quot;javascript:document.form s[0].action.value='load_cities';document.forms[0].city1.value='';document.forms[0].submit();&quot;">state</input>
<input name="zip1" max_length="16" validate="/^[-0-9A-Z ]+$/i">zip_code</input>
<input name="country" type="select" table="countries" store="value" blankline="select_country" key="id" value="name" otherattr="onChange=&quot;javascript:document.form s[0].action.value='load_cities';document.forms[0].state_one.value='';document.forms[0].city1.value='';document.forms[0].submit();&quot;">country</input>
</fieldset>



Pleasse assist in any way you can
Reply With Quote
  #2 (permalink)  
Old 06-21-05, 12:04 AM
jordie jordie is offline
Wannabe Coder
 
Join Date: Jun 2005
Posts: 179
Thanks: 0
Thanked 0 Times in 0 Posts
need the rest of the javascript code. this is usually found inbetween <head> and </head>
__________________
Jordie Bodlay
php, mysql, postgres
css, xhtml
graphics, design
email me: jb2386@hotmail.com for any programming needs.
Reply With Quote
  #3 (permalink)  
Old 06-21-05, 07:46 AM
dinalsi dinalsi is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
thanks jordie for the reply. I found the problem. I had a form tag where it should not have been.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php variable problem ashishjha54 PHP 7 05-22-05 12:09 PM
BB Code Parser and PHP 5 Problem ozwald PHP 1 05-12-05 01:24 AM
Have a look at my JSP code which is not giving me the desired output j.gohel Everything Java 1 04-07-05 03:55 AM
Can anyone help me ? (problem using php variables in html db insert code) chronic_ PHP 2 06-13-04 11:19 AM
How to sale php code to customer without giving him code pradeep_soft PHP 4 03-12-04 12:10 PM


All times are GMT -5. The time now is 08:44 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.