Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old May 11th, 2004, 04:51 AM
Greggers Greggers is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Oro Valley, AZ, USA
Posts: 1 Greggers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Select onChange event

My client has no server side program support such as asp or cf. He needs me to have a dynamic entry added when the user selects a number of dependents.

I do know he has PHP available on his host so I thought I would give it a shot.

Th code is below. Where and how do I stick an onChange event so the table will add the section I have included?

<select name="Number of drivers in household" class="formbodytext" id="Number of drivers in household">
<option value="Select" selected>Select</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select></td>
</tr>

<!-- This section is for after they select the number of users. The program will take the value
and build the additiional entries based on the value choosen. This is a loop. -->
<!--<tr bgcolor="#CC6600">
<td align="left" valign="middle" bgcolor="#EEEEE0" class="formbodytext"><table width="100%" border="0" cellpadding="6" cellspacing="0" class="formbodytext">
<tr>
<td bgcolor="#F3DC99"><strong>Driver #2</strong></td>
</tr>
<tr>
<td>Full Name: First<span class="formasterisk">*</span> <input name="Driver 2 First Name" id="Driver 2 First Name" size="20">
Middle<span class="formasterisk">*</span><input name="Driver 2 Middle Name" id="Driver 2 Middle Name" size="10">
Last<span class="formasterisk">*</span><input name="Driver 2 Last Name" id="Driver 2 Last Name" size="25">
</td>
</tr>
<tr>
<td>Birthdate<span class="formasterisk">*</span> <font size="2" face="Arial, Helvetica, sans-serif" color="#003366">
<select name="Driver 2 Birth Month" size="1" class="formbodytext" id="Driver 2 Birth Month">
<option selected>Month
<option value="January">January
<option value="February">February
<option value="March">March
<option value="April">April
<option value="May">May
<option value="June">June
<option value="July">July
<option value="August">August
<option value="September">September
<option value="October">October
<option value="November">November
<option value="December">December
</select>
</font><font size="2" face="Arial, Helvetica, sans-serif" color="#003366">
<select name="Driver 2 Birth Day" size="1" class="formbodytext" id="Driver 2 Birth Day">
<option selected>Day
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
<option value="11">11
<option value="12">12
<option value="13">13
<option value="14">14
<option value="15">15
<option value="16">16
<option value="17">17
<option value="18">18
<option value="19">19
<option value="20">20
<option value="21">21
<option value="22">22
<option value="23">23
<option value="24">24
<option value="25">25
<option value="26">26
<option value="27">27
<option value="28">28
<option value="29">29
<option value="30">30
<option value="31">31
</select>
</font><font size="2" face="Arial, Helvetica, sans-serif" color="#003366">
<select name="Driver 2 Birth Year" size="1" class="formbodytext" id="Driver 2 Birth Year">
<option selected>Year
<option value="1920">1920
<option value="1921">1921
<option value="1922">1922
<option value="1923">1923
<option value="1924">1924
<option value="1925">1925
<option value="1926">1926
<option value="1927">1927
<option value="1928">1928
<option value="1929">1929
<option value="1930">1930
<option value="1931">1931
<option value="1932">1932
<option value="1933">1933
<option value="1934">1934
<option value="1935">1935
<option value="1936">1936
<option value="1937">1937
<option value="1938">1938
<option value="1939">1939
<option value="1940">1940
<option value="1941">1941
<option value="1942">1942
<option value="1943">1943
<option value="1944">1944
<option value="1945">1945
<option value="1946">1946
<option value="1947">1947
<option value="1948">1948
<option value="1949">1949
<option value="1950">1950
<option value="1951">1951
<option value="1952">1952
<option value="1953">1953
<option value="1954">1954
<option value="1955">1955
<option value="1956">1956
<option value="1957">1957
<option value="1958">1958
<option value="1959">1959
<option value="1960">1960
<option value="1961">1961
<option value="1962">1962
<option value="1963">1963
<option value="1964">1964
<option value="1965">1965
<option value="1966">1966
<option value="1967">1967
<option value="1968">1968
<option value="1969">1969
<option value="1970">1970
<option value="1971">1971
<option value="1972">1972
<option value="1973">1973
<option value="1974">1974
<option value="1975">1975
<option value="1976">1976
<option value="1977">1977
<option value="1978">1978
<option value="1979">1979
<option value="1980">1980
<option value="1981">1981
<option value="1982">1982
<option value="1983">1983
<option value="1984">1984
<option value="1985">1985
<option value="1986">1986
<option value="1987">1987
<option value="1988">1988
<option value="1989">1989
</select>
</font><font size="2" face="Arial, Helvetica, sans-serif" color="#003366">&nbsp; </font></td>
</tr>
<tr>
<td>Has this driver had any ticket/accident in last 5 years?<span class="formasterisk">*</span> &nbsp;
<input type="radio" name="Driver 2 ticket/accident?" value="yes">
Yes&nbsp;&nbsp;
<input type="radio" name="Driver 2 ticket/accident?" value="no">
No</td>
</tr>
<tr>
<td>Does this driver have a valid AZ driver's license?<span class="formasterisk">*</span> &nbsp;
<input type="radio" name="Driver 2 valid license" value="yes">
Yes&nbsp;&nbsp;
<input type="radio" name="Driver 2 valid license" value="no">
No</td>
</tr>
</table></td>
</tr>-->
<!-- End of drivers loop -->

Thanks in advance

Greggers

Reply With Quote
  #2  
Old May 11th, 2004, 05:31 AM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 57 m 19 sec
Reputation Power: 3
RE: Select onChange event

Please do not create multiple threads about the same question. They will not get you an answer any quicker. I have moved two of these duplicate threads of yours, please do not do it again.

This is javascript (client side) related. Php can use an echo command to place the javascript inside the form but it is impractical you might aswell hard code the javascript in. So im moving this thread to client side because i feel it will get a better response there.

Reply With Quote
  #3  
Old May 11th, 2004, 05:32 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by kendo.

Reason: Clientside related.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Select onChange event


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT