Annonceindlæg fra GlobalConnect
01. august 2006 - 14:13
#4
Grunden til du ikke kunne sende og slette de informationer i boksene var fordi du have en masse forskellige <form>'s som slet ikke hang sammen, har jeg lige fixet <html> <head> <title>Forspørgsel</title> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function createForm(number) { data = ""; inter = "'"; if (number < 16 && number > -1) { for (i=1; i <= number; i++) { if (i < 10) spaces=" "; else spaces=" "; data = data + "Person " + i + " :" + spaces + "<input type='text' size=40 name=" + inter + "person" + i + inter + "'><br>"; } if (document.layers) { document.layers.cust.document.write(data); document.layers.cust.document.close(); } else { if (document.all) { cust.innerHTML = data; } } } else { window.alert("Please select up to 15 entries."); } } // End --> </script> <style> a, A:link, a:visited, a:active {color: #0000aa; text-decoration: none; font-family: Tahoma, Verdana; font-size: 11px} A:hover {color: #ff0000; text-decoration: none; font-family: Tahoma, Verdana; font-size: 11px} p, tr, td, ul, li {color: #000000; font-family: Tahoma, Verdana; font-size: 11px} th {background: #DBEAF5; color: #000000;} .header1, h1 {color: #ffffff; background: #4682B4; font-weight: bold; font-family: Tahoma, Verdana; font-size: 13px; margin: 0px; padding-left: 2px; height: 21px} .header2, h2 {color: #000000; background: #DBEAF5; font-weight: bold; font-family: Tahoma, Verdana; font-size: 12px;} .intd {color: #000000; font-family: Tahoma, Verdana; font-size: 11px; padding-left: 15px;} .wcell {background: #FFFFFF; vertical-align: top} .ctrl {font-family: Tahoma, Verdana, sans-serif; font-size: 12px; width: 100%;} .btnform {border: 0px; font-family: tahoma, verdana; font-size: 12px; background-color: #DBEAF5; width: 100%; height:18px; text-align: center; cursor: hand;} .btn {background-color: #DBEAF5; padding: 0px;} textarea, select,input {font: 9px Verdana, arial, helvetica, sans-serif; background-color: #DBEAF5;} /* classes for validator */ .tfvHighlight {font-weight: bold; color: red;} .tfvNormal {font-weight: normal; color: black;} </style> <script language="JavaScript" src="validator.js"></script> </head> <body bottommargin="15" topmargin="15" leftmargin="15" rightmargin="15" marginheight="15" marginwidth="15" bgcolor="white"> <form action="LimeFruit%20Design/6.%20Scripts/validator/demo1.html" method="get" name="registration" onsubmit="return v.exec()"> <table cellpadding="0" cellspacing="0" border="0" width="600" align="center"> <tr> <td bgcolor="#FFFFFF" width="10"> </td> <td class="header1" nowrap style="background-color: #FFFFFF"> <font color="#660606" size="3">Person oplysning</font></td> <td bgcolor="#FFFFFF"> </td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> <td> <br> <div align="center" id="error_registration" style="display: block;"></div> <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td bgcolor="#DBEAF5"> <table cellspacing="1" cellpadding="2" border="0" width="100%"> <tr bgcolor="#ffffff"> <td id="t_title" width="14%"><b> Kontakt person</b></td> <td id="t_first_name" width="10%"> Fornavn:</td> <td width="20%"><input type="text" name="first_name" size="10" class="ctrl"></td> <td id="t_last_name" width="16%"> Efternavn:</td> <td width="40%" colspan="2"><input type="text" name="last_name" size="10" class="ctrl"></td> </tr> <tr bgcolor="#ffffff"> <td id="t_street_address"><b> Adresse:</b></td> <td bgcolor="#ffffff" colspan="5"><input type="text" name="street_address" size="35" class="ctrl"></td> </tr> <tr bgcolor="#ffffff"> <td id="t_city"><b> By:</b></td> <td><input type="text" name="city" size="10" class="ctrl"></td> <td id="t_county"> Post nr:</td> <td><input type="text" name="post_code" class="ctrl" size="5"></td> <td id="t_post_code" width="10%"> Telefon:</td> <td width="10%"><input type="text" name="county" size="10" class="ctrl"></td> </tr> <tr bgcolor="#ffffff"> <td id="t_country"><b> Rejsemål:</b></td> <td colspan="2"> <select name="country" class="ctrl" > <option value="" selected>-- Vælg land -- <option value="AF">Afghanistan<option value="AL">Albania<option value="DZ">Algeria<option value="AS">American Samoa<option value="AD">Andorra<option value="AO">Angola<option value="AI">Anguilla<option value="AQ">Antarctica<option value="AG">Antigua and Barbuda<option value="AR">Argentina<option value="AM">Armenia<option value="AW">Aruba<option value="AU">Australia<option value="AT">Austria<option value="AZ">Azerbaijan<option value="BS">Bahamas<option value="BH">Bahrain<option value="BD">Bangladesh<option value="BB">Barbados<option value="BY">Belarus<option value="BE">Belgium<option value="BZ">Belize<option value="BJ">Benin<option value="BM">Bermuda<option value="BT">Bhutan<option value="BO">Bolivia<option value="BA">Bosnia and Herzegovina<option value="BW">Botswana<option value="BV">Bouvet Island<option value="BR">Brazil<option value="IO">British Indian Ocean Territory<option value="BN">Brunei<option value="BG">Bulgaria<option value="BF">Burkina Faso<option value="BI">Burundi<option value="KH">Cambodia<option value="CM">Cameroon<option value="CA">Canada<option value="CV">Cape Verde<option value="KY">Cayman Islands<option value="CF">Central African Republic<option value="TD">Chad<option value="CL">Chile<option value="CN">China<option value="CX">Christmas Island<option value="CC">Cocos (Keeling) Islands<option value="CO">Colombia<option value="KM">Comoros<option value="CG">Congo<option value="CK">Cook Islands<option value="CR">Costa Rica<option value="CI">C?te d'Ivoire<option value="HR">Croatia (Hrvatska)<option value="CU">Cuba<option value="CY">Cyprus<option value="CZ">Czech Republic<option value="CD">Congo (DRC)<option value="DK">Denmark<option value="DJ">Djibouti<option value="DM">Dominica<option value="DO">Dominican Republic<option value="TP">East Timor<option value="EC">Ecuador<option value="EG">Egypt<option value="SV">El Salvador<option value="GQ">Equatorial Guinea<option value="ER">Eritrea<option value="EE">Estonia<option value="ET">Ethiopia<option value="FK">Falkland Islands (Islas Malvinas)<option value="FO">Faroe Islands<option value="FJ">Fiji Islands<option value="FI">Finland<option value="FR">France<option value="GF">French Guiana<option value="PF">French Polynesia<option value="TF">French Southern and Antarctic Lands<option value="GA">Gabon<option value="GM">Gambia<option value="GE">Georgia<option value="DE">Germany<option value="GH">Ghana<option value="GI">Gibraltar<option value="GR">Greece<option value="GL">Greenland<option value="GD">Grenada<option value="GP">Guadeloupe<option value="GU">Guam<option value="GT">Guatemala<option value="GN">Guinea<option value="GW">Guinea-Bissau<option value="GY">Guyana<option value="HT">Haiti<option value="HM">Heard Island and McDonald Islands<option value="HN">Honduras<option value="HK">Hong Kong SAR<option value="HU">Hungary<option value="IS">Iceland<option value="IN">India<option value="ID">Indonesia<option value="IR">Iran<option value="IQ">Iraq<option value="IE">Ireland<option value="IL">Israel<option value="IT">Italy<option value="JM">Jamaica<option value="JP">Japan<option value="JO">Jordan<option value="KZ">Kazakhstan<option value="KE">Kenya<option value="KI">Kiribati<option value="KR">Korea<option value="KW">Kuwait<option value="KG">Kyrgyzstan<option value="LA">Laos<option value="LV">Latvia<option value="LB">Lebanon<option value="LS">Lesotho<option value="LR">Liberia<option value="LY">Libya<option value="LI">Liechtenstein<option value="LT">Lithuania<option value="LU">Luxembourg<option value="MO">Macao SAR<option value="MK">Macedonia, Former Yugoslav Republic of<option value="MG">Madagascar<option value="MW">Malawi<option value="MY">Malaysia<option value="MV">Maldives<option value="ML">Mali<option value="MT">Malta<option value="MH">Marshall Islands<option value="MQ">Martinique<option value="MR">Mauritania<option value="MU">Mauritius<option value="YT">Mayotte<option value="MX">Mexico<option value="FM">Micronesia<option value="MD">Moldova<option value="MC">Monaco<option value="MN">Mongolia<option value="MS">Montserrat<option value="MA">Morocco<option value="MZ">Mozambique<option value="MM">Myanmar<option value="NA">Namibia<option value="NR">Nauru<option value="NP">Nepal<option value="NL">Netherlands<option value="AN">Netherlands Antilles<option value="NC">New Caledonia<option value="NZ">New Zealand<option value="NI">Nicaragua<option value="NE">Niger<option value="NG">Nigeria<option value="NU">Niue<option value="NF">Norfolk Island<option value="KP">North Korea<option value="MP">Northern Mariana Islands<option value="NO">Norway<option value="OM">Oman<option value="PK">Pakistan<option value="PW">Palau<option value="PA">Panama<option value="PG">Papua New Guinea<option value="PY">Paraguay<option value="PE">Peru<option value="PH">Philippines<option value="PN">Pitcairn Islands<option value="PL">Poland<option value="PT">Portugal<option value="PR">Puerto Rico<option value="QA">Qatar<option value="RE">Reunion<option value="RO">Romania<option value="RU">Russia<option value="RW">Rwanda<option value="WS">Samoa<option value="SM">San Marino<option value="ST">S?o Tom? and Pr?ncipe<option value="SA">Saudi Arabia<option value="SN">Senegal<option value="YU">Serbia and Montenegro<option value="SC">Seychelles<option value="SL">Sierra Leone<option value="SG">Singapore<option value="SK">Slovakia<option value="SI">Slovenia<option value="SB">Solomon Islands<option value="SO">Somalia<option value="ZA">South Africa<option value="GS">South Georgia and the South Sandwich Islands<option value="ES">Spain<option value="LK">Sri Lanka<option value="SH">St. Helena<option value="KN">St. Kitts and Nevis<option value="LC">St. Lucia<option value="PM">St. Pierre and Miquelon<option value="VC">St. Vincent and the Grenadines<option value="SD">Sudan<option value="SR">Suriname<option value="SJ">Svalbard and Jan Mayen<option value="SZ">Swaziland<option value="SE">Sweden<option value="CH">Switzerland<option value="SY">Syria<option value="TW">Taiwan<option value="TJ">Tajikistan<option value="TZ">Tanzania<option value="TH">Thailand<option value="TG">Togo<option value="TK">Tokelau<option value="TO">Tonga<option value="TT">Trinidad and Tobago<option value="TN">Tunisia<option value="TR">Turkey<option value="TM">Turkmenistan<option value="TC">Turks and Caicos Islands<option value="TV">Tuvalu<option value="UG">Uganda<option value="UA">Ukraine<option value="AE">United Arab Emirates<option value="UK">United Kingdom<option value="US">United States<option value="UM">United States Minor Outlying Islands<option value="UY">Uruguay<option value="UZ">Uzbekistan<option value="VU">Vanuatu<option value="VA">Vatican City<option value="VE">Venezuela<option value="VN">Viet Nam<option value="VG">Virgin Islands (British)<option value="VI">Virgin Islands<option value="WF">Wallis and Futuna<option value="YE">Yemen<option value="ZM">Zambia<option value="ZW">Zimbabwe </select></td> <td id="t_telephone_number"> By / Område</td> <td colspan="2"><input type="text" name="telephone_number" size="10" class="ctrl"></td> </tr> <tr bgcolor="#ffffff"> <td id="t_email"><b> E-mail:</b></td> <td colspan="5"><input type="text" name="email" size="35" class="ctrl"></td> </tr> <tr bgcolor="#ffffff"> <td id="t_general_information"><b> General info:<br> <br> <br> <br> </b></td> <td bgcolor="#ffffff" colspan="5"><textarea name="general_information" rows="5" cols="32" class="ctrl"></textarea></td> </tr> </table></td></tr></table> <img src="LimeFruit%20Design/6.%20Scripts/validator/img/pixel.gif" width="1" height="10" border="0"></td> <td bgcolor="#FFFFFF"> </td> </tr> </table> <!-- Form end --> </td> </tr> </table> </td> </tr> </table> </td></tr></table> <!-- /Body --> <script> // form fields description structure var a_fields = { 'title': { 'l': 'Title', // label 'r': false, // required 'f': 'alpha', // format (see below) 't': 't_title',// id of the element to highlight if input not validated 'm': null, // must match specified form field 'mn': 2, // minimum length 'mx': 10 // maximum length }, 'first_name':{'l':'First Name','r':true,'f':'alpha','t':'t_first_name'}, 'last_name':{'l':'Last Name','r':true,'f':'alpha','t':'t_last_name'}, 'company':{'l':'Company','r': true,'t':'t_company'}, 'company_number':{'l':'Company Number','r':true,'f':'unsigned','t':'t_company_number'}, 'street_address':{'l':'Street Address','r':true,'t':'t_street_address'}, 'city':{'l':'City','r':true,'f':'alpha','t':'t_city'}, 'county':{'l':'County','r':false,'f':'alphanum','t':'t_county'}, 'post_code':{'l':'Post Code','r':true,'f':'unsigned','t':'t_post_code'}, 'country':{'l':'Country','r':true,'t':'t_country'}, 'telephone_number':{'l':'Telephone Number','r':true,'f':'phone','t':'t_telephone_number'}, 'email':{'l':'E-mail','r':true,'f':'email','t':'t_email'}, 'general_information':{'l':'General information','r':true,'t':'t_general_information'} }, o_config = { 'to_disable' : ['Submit', 'Reset'], 'alert' : 1 } // validator constructor call var v = new validator('registration', a_fields, o_config) </script> <center> <font face="Tahoma"><span style="font-size: 9pt">Skriv antal af personer som skal rejse:</span></font><span style="font-size: 9pt"> <input type=text name=number size=5 style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 9px; font-family: Verdana, arial, helvetica, sans-serif; background-color: #DBEAF5"> <input type=button value="Tryk" onClick="createForm(counter.number.value);" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 9px; font-family: Verdana, arial, helvetica, sans-serif; background-color: #DBEAF5"> </span> <table border=0 id="table1"> <tr valign=top style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> <td style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"><b> Udfyld personernes fulde navn som det står i dit / deres pas:</b></td> <td style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> </td> </tr> <tr style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> <td colspan=2 style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> <!-- Placeholder for dynamic form contents --> <span id=cust style="position:relative;"></span> </td> </tr> <tr valign=top style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> <td style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> </td> <td style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> </td> </tr> <tr style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> <td style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"></td> <td style="color: #000000; font-family: Tahoma, Verdana; font-size: 11px"> </td> </tr> </table> <table border="0" width="100%" id="table2"> <tr> <td> </td> <td> <input type="reset" name="reset" value="Slet" class="btnform" style="color: #000000; border: 1px solid #000000; background-color: #FFFFFF"></td> <td> <input type="submit" name="Submit" value="Send" class="btnform" style="color: #000000; border: 1px solid #000000; background-color: #FFFFFF"></td> <td> </td> </tr> </table> </form> </center> </body> </html>