Guest_imported
New member
- Jan 1, 1970
- 0
- 0
- 0
I'll post this one final time, and hope someone can come up with a good solution.
I've got a DBA admin back-end - Perl-based. When people enter a new database record (it's for a vendor directory), they enter 14 fields about a vendor to a cgi that processes the info. and inputs a database record. Within the html of the page for entering vendor information (name, address, etc.) I have a 3D array to pick what kind and sub-type of business this is - it's a <form> unto itself - so to get it in, I end the main <form>, do teh array, and then start the DBA form again. The problem is that the array is a form unto itself - and the cgi scripting will only process from the last <form action> -
Basically, can I embed a form like this, and pass all information through to the last input type=submit - with some kind of passed values script, or something.
Below is the code I'm referring to - you'll see that form <database_doctor.cgi> ends, then form <place> starts and ends (the 3D array) - then I have to submit it all to databasedoctor.cgi again - and it's only passing on the values from the last <form> . . . </form>
Really, I'm pulling my hair out over this one. Thanks in advance, mucho!
<html>
<head>
<title>Database Doctor 2.0</title>
<script>
//3D array info
CHINESE = new Array("Chinese Cuisine","a-00001"
DELIVERY = new Array("Delivery Food","b-00001"
DINER = new Array("Diners","c-00001"
FRENCH = new Array("French Cuisine","d-00001"
GREEK = new Array("Greek Cuisine","e-00001"
ITALIAN = new Array("Italian Cuisine","f-00001"
MEXICAN = new Array("Mexican Cuisine","g-00001"
MIDDLEEASTERN = new Array("Middleastern Cuisine","h-
00001"
SEAFOOD = new Array("Seafood","i-00001"
GALLERIES = new Array("Galleries","a-00002"
MOVIES = new Array("Movies","b-00002"
MUSEUMS = new Array("Museums & Exhibits","c-00002"
SPECIAL = new Array("Special Occasions","d-00002"
THEATRE = new Array("Theatre","e-00002"
BARS = new Array("Bars & Pubs","a-00003"
CLUBS = new Array("Dance & Night Clubs","b-00003"
GENERAL = new Array("General Shopping","a-10001"
WOMENS = new Array("Women's Fashion","b-10001"
MENS = new Array("Men's Fashion","c-10001"
SPORTSSHOPPING = new Array("Sports Apparel","d-
10001"
COMMERCIAL = new Array("Commercial Real Estate","a-
10002"
RESIDENTIAL = new Array("Residential Real
Estate","b-10002"
GOLFING2 = new Array("Area Golf Courses","a-20001"
BEACHES2 = new Array("Local Beaches","a-20002"
CHARTER_FISHING = new Array("Charter Fishing","a-
20003"
PARASAILING = new Array("Parasailing","b-20003"
RENTALS = new Array("Marine Rentals","c-20003"
TOURS = new Array("Tours","a-20004"
ESTUARIES = new Array("Estuaries","b-20004"
GYMS2 = new Array("Gyms & Workout Facilities","a-
20005"
AFFORDABLE = new Array("Affordable Car Rentals","a-
30001"
LUXURY = new Array("Luxury Car Rentals","b-30001"
TAXIS2 = new Array("Taxi Services","a-30002"
LIMOS2 = new Array("Limousine Services","a-30003"
HISTORICAL2 = new Array("Historical Sites &
Landmarks","a-40001"
DAYCARE = new Array("Child Day Care","a-40002"
AMUSEMENT = new Array("Amusement Parks, etc.","b-
40002"
CHRISTIAN = new Array("Christian","a-40003"
JEWISH = new Array("Jewish","b-40003"
ISLAM = new Array("Islam","c-40003"
OTHER = new Array("Other","d-40003"
DININGOUT = new Array("Dining
Out",CHINESE,DELIVERY,DINER,FRENCH,GREEK,ITALIAN,MEXICAN,MID
DLEEASTERN,SEAFOOD)
ENTERTAINMENT = new Array("Entertainment &
Arts",MOVIES,THEATRE,MUSEUMS,SPECIAL,GALLERIES)
LATENIGHT = new Array("Late Night
Activities",BARS,CLUBS)
SHOPPING = new Array
("Shopping",GENERAL,WOMENS,MENS,SPORTSSHOPPING)
REALESTATE = new Array("Local Real
Estate",COMMERCIAL,RESIDENTIAL)
GOLFING = new Array("Golfing",GOLFING2)
BEACHES = new Array("Beaches",BEACHES2)
MARINE = new Array("Marine
Activities",CHARTER_FISHING,PARASAILING,RENTALS)
OUTDOORS = new Array("Outdoors
Adventure",TOURS,ESTUARIES)
GYMS = new Array("Gyms & Workout Facilities",GYMS2)
CARS = new Array("Car Rentals",AFFORDABLE,LUXURY)
TAXIS = new Array("Taxi Companies",TAXIS2)
LIMOS = new Array("Limosusine Services",LIMOS2)
HISTORICAL = new Array("Historical Sites &
Landmarks",HISTORICAL2)
CHILDREN = new Array("Children's
Activities",DAYCARE,AMUSEMENT)
RELIGIOUS = new Array("Religious Activities &
Spiritual Organizations",CHRISTIAN,JEWISH,ISLAM,OTHER)
Place = new Array
("",DININGOUT,ENTERTAINMENT,LATENIGHT,SHOPPING,REALESTATE,GO
LFING,BEACHES,MARINE,OUTDOORS,GYMS,CARS,TAXIS,LIMOS,HISTORIC
AL,CHILDREN,RELIGIOUS)
DININGOUT_ID = new Array(CHINESE[0],DELIVERY
[0],DINER[0],FRENCH[0],GREEK[0],ITALIAN[0],MEXICAN
[0],MIDDLEEASTERN[0],SEAFOOD[0])
ENTERTAINMENT_ID = new Array(MOVIES[0],THEATRE
[0],MUSEUMS[0],SPECIAL[0],GALLERIES[0])
LATENIGHT_ID = new Array(BARS[0],CLUBS[0])
SHOPPING_ID = new Array(GENERAL[0],WOMENS[0],MENS
[0],SPORTSSHOPPING[0])
REALESTATE_ID = new Array(COMMERCIAL[0],RESIDENTIAL
[0])
GOLFING_ID = new Array(GOLFING2[0])
BEACHES_ID = new Array(BEACHES2[0])
MARINE_ID = new Array(CHARTER_FISHING[0],PARASAILING
[0],RENTALS[0])
OUTDOORS_ID = new Array(TOURS[0],ESTUARIES[0])
GYMS_ID = new Array(GYMS2[0])
CARS_ID = new Array(AFFORDABLE[0],LUXURY[0])
TAXIS_ID = new Array(TAXIS2[0])
LIMOS_ID = new Array(LIMOS2[0])
HISTORICAL_ID = new Array(HISTORICAL2[0])
CHILDREN_ID = new Array(DAYCARE,AMUSEMENT[0])
RELIGIOUS_ID = new Array(CHRISTIAN[0],JEWISH
[0],ISLAM[0],OTHER[0])
PLACE_ID = new Array
(DININGOUT_ID,ENTERTAINMENT_ID,LATENIGHT_ID,SHOPPING_ID,REAL
ESTATE_ID,GOLFING_ID,BEACHES_ID,MARINE_ID,OUTDOORS_ID,GYMS_I
D,CARS_ID,TAXIS_ID,LIMOS_ID,HISTORICAL_ID,CHILDREN_ID,RELIGI
OUS_ID)
function changevendor_type() {
selected_vendor_type =
document.place.vendor_type.selectedIndex + 1
selected_vendor_type_specific =
document.place.vendor_type_specific.selectedIndex + 1
num_vendor_type_specific = Place
[selected_vendor_type].length-1
num_vendor_type_number = Place[selected_vendor_type]
[selected_vendor_type_specific].length-1
CountryOptionsLength =
document.place.vendor_type_specific.length
CityOptionsLength =
document.place.vendor_type_number.length
for (i=CountryOptionsLength-1; i>0; i--) document.place.vendor_type_specific.options =
null;
for (i=0; i<num_vendor_type_specific; i++)
document.place.vendor_type_specific.options = new Option
(PLACE_ID[selected_vendor_type-1])
for (j=CityOptionsLength-1; j>0; j--)
document.place.vendor_type_number.options[j] = null;
for (j=0; j<num_vendor_type_number; j++)
document.place.vendor_type_number.options[j] = new Option
(Place[selected_vendor_type][selected_vendor_type_specific]
[j+1])
}
function changevendor_type_specific() {
selected_vendor_type =
document.place.vendor_type.selectedIndex + 1
selected_vendor_type_specific =
document.place.vendor_type_specific.selectedIndex + 1
num_vendor_type_number = Place[selected_vendor_type]
[selected_vendor_type_specific].length-1
CityOptionsLength =
document.place.vendor_type_number.length
for (j=CityOptionsLength-1; j>0; j--)
document.place.vendor_type_number.options[j] = null;
for (j=0; j<num_vendor_type_number; j++)
document.place.vendor_type_number.options[j] = new Option
(Place[selected_vendor_type][selected_vendor_type_specific]
[j+1])
}
function SetDefault() {
selected_vendor_type =
document.place.vendor_type.selectedIndex + 1
selected_vendor_type_specific =
document.place.vendor_type_specific.selectedIndex + 1
num_vendor_type_specific = Place
[selected_vendor_type].length-1
num_vendor_type_number = Place[selected_vendor_type]
[selected_vendor_type_specific].length-1
for (i=0; i<num_vendor_type_specific; i++)
document.place.vendor_type_specific.options = new Option
(PLACE_ID[selected_vendor_type-1])
for (j=0; j<num_vendor_type_number; j++)
document.place.vendor_type_number.options[j] = new Option
(Place[selected_vendor_type][selected_vendor_type_specific]
[j+1])
}
</script>
</head>
<BODY basefont=-1>
<body onload="SetDefault()">
<a href="src="alt="Database Doctor" border=0></a><P>
##start first form
<FORM method=post action="database_doctor.cgi">
<INPUT type="hidden" name="password" Value="gdthree">
<INPUT type="hidden" name="user" Value="altaratz">
<center><table border=1 WIDTH="70%" BGCOLOR="#F8F1F1">
<tr><td colspan=2
BGCOLOR="#D5E6E1"><center><B><FONT COLOR="#000000"
size="+1">New Entry Form</FONT></center></B>
</td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Individual Vendor ID Number (add '1' to
previous)</a></td>
<td><input type=text name="vendor_number"
size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Vendor Name</a></td>
<td><input type=text name="vendor_name"
size=25></td></tr>
</form>
##end first form
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Vendor Types & Number</a></td>
##start second form
<form name="place">
<td> <select name="vendor_type"
onchange="changevendor_type()">
<option>Dining Out</option>
<option>Entertainment & Arts</option>
<option>Late Night Activities</option>
<option>Shopping</option>
<option>Local Real Estate</option>
<option>Golfing</option>
<option>Beaches</option>
<option>Marine Activities</option>
<option>Outdoors Adventure</option>
<option>Gyms & Workout Facilities</option>
<option>Car Rentals</option>
<option>Taxi Companies</option>
<option>Limosusine Services</option>
<option>Historical Sites &
Landmarks</option>
<option>Children's Activities</option>
<option>Religious Activities & Spiritual
Organizations</option>
</select>
<br>
<br>
<br>
<select name="vendor_type_specific"
onchange="changevendor_type_specific()">
<option></option>
</select>
<br>
<br>
<br>
<select name="vendor_type_number">
<option></option>
</select>
</form>
##end second form
##start original form again
<FORM method=post action="database_doctor.cgi">
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Path To Image for Banner
Advertisement</a></td>
<td><input type=text name="banner" size=25
value=
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Email</a></td>
<td><input type=text name="address"
size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">City</a></td>
<td><input type=text name="city" size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">State</a></td>
<td><select name="state">
<option value="99">Please Select:</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DC">D.C.</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Phone Number</a></td>
<td><input type=text name="phone" size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Contact Email Address</a></td>
<td><input type=text name="email" size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Website URL</a></td>
<td><input type=text name="url" size=25
value=
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Does the vendor offer any special
discounts?</a></td>
<td><select name="discount_huh">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Available discount(s)</a></td>
<td><input type=text name="discount" size=50
value="Sorry, no discounts available for this
vendor"></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Text for Pop-up Ad</a></td>
<td><input type=text name="perma_tip"
size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Path to Image File for Pop-up
Ad</a></td>
<td><input type=text name="perma_ad" size=25
value=
</table>
<P></center>
##submit
<center><P><INPUT type="submit" name="add" Value=" Add
this directly to the Database ">
<center><INPUT type="submit" name="preview" Value="
Preview "><P>
<center>
<P><hr><p>
<center><P><INPUT type="Submit" name="startup"
Value=" Enter New Items Form">
<INPUT type="Submit" name="edit" Value=" Edit
the Database ">
<INPUT type="Submit" name="sort" Value=" Sort
the Database "><P>
<INPUT type="Submit" name="search" Value="
Search the Database ">
<INPUT type="Submit" name="print" Value="
Prepare a Printout "><p>
<a href="display.cgi" target="_new">See the Data in
Display.cgi Front End</a><p>
<!-- START ADCYCLE.COM IFRAME RICH MEDIA CODE -->
<!-- © 2000 AdCycle.com All Rights Reserved. -->
<iframe
src="group=6&media=1&id=1&delivery=iframe" height=60 width=468
border=0 marginheight=0 scrolling=no marginwidth=0
frameborder=no>
<a
href="manager=adcycle.com&id=1" target="_top"><img
src="group=6&media=1&id=1" width=468 height=60 border=1
ALT="Click to Visit"></a>
</iframe>
<!-- END ADCYCLE.COM IFRAME RICH MEDIA CODE -->
<center>
<p><font color="#000000"><font size=-2>Copyright
(c) 1997-2000 <a href=" Web
Bazaar</a> Database Doctor.
<br>All rights reserved. Reproduction in whole or
in part in any form or medium
<br>without express written permission of The Web
Bazaar is prohibited.</font></font></center>
</body>
</html>
I've got a DBA admin back-end - Perl-based. When people enter a new database record (it's for a vendor directory), they enter 14 fields about a vendor to a cgi that processes the info. and inputs a database record. Within the html of the page for entering vendor information (name, address, etc.) I have a 3D array to pick what kind and sub-type of business this is - it's a <form> unto itself - so to get it in, I end the main <form>, do teh array, and then start the DBA form again. The problem is that the array is a form unto itself - and the cgi scripting will only process from the last <form action> -
Basically, can I embed a form like this, and pass all information through to the last input type=submit - with some kind of passed values script, or something.
Below is the code I'm referring to - you'll see that form <database_doctor.cgi> ends, then form <place> starts and ends (the 3D array) - then I have to submit it all to databasedoctor.cgi again - and it's only passing on the values from the last <form> . . . </form>
Really, I'm pulling my hair out over this one. Thanks in advance, mucho!
<html>
<head>
<title>Database Doctor 2.0</title>
<script>
//3D array info
CHINESE = new Array("Chinese Cuisine","a-00001"
DELIVERY = new Array("Delivery Food","b-00001"
DINER = new Array("Diners","c-00001"
FRENCH = new Array("French Cuisine","d-00001"
GREEK = new Array("Greek Cuisine","e-00001"
ITALIAN = new Array("Italian Cuisine","f-00001"
MEXICAN = new Array("Mexican Cuisine","g-00001"
MIDDLEEASTERN = new Array("Middleastern Cuisine","h-
00001"
SEAFOOD = new Array("Seafood","i-00001"
GALLERIES = new Array("Galleries","a-00002"
MOVIES = new Array("Movies","b-00002"
MUSEUMS = new Array("Museums & Exhibits","c-00002"
SPECIAL = new Array("Special Occasions","d-00002"
THEATRE = new Array("Theatre","e-00002"
BARS = new Array("Bars & Pubs","a-00003"
CLUBS = new Array("Dance & Night Clubs","b-00003"
GENERAL = new Array("General Shopping","a-10001"
WOMENS = new Array("Women's Fashion","b-10001"
MENS = new Array("Men's Fashion","c-10001"
SPORTSSHOPPING = new Array("Sports Apparel","d-
10001"
COMMERCIAL = new Array("Commercial Real Estate","a-
10002"
RESIDENTIAL = new Array("Residential Real
Estate","b-10002"
GOLFING2 = new Array("Area Golf Courses","a-20001"
BEACHES2 = new Array("Local Beaches","a-20002"
CHARTER_FISHING = new Array("Charter Fishing","a-
20003"
PARASAILING = new Array("Parasailing","b-20003"
RENTALS = new Array("Marine Rentals","c-20003"
TOURS = new Array("Tours","a-20004"
ESTUARIES = new Array("Estuaries","b-20004"
GYMS2 = new Array("Gyms & Workout Facilities","a-
20005"
AFFORDABLE = new Array("Affordable Car Rentals","a-
30001"
LUXURY = new Array("Luxury Car Rentals","b-30001"
TAXIS2 = new Array("Taxi Services","a-30002"
LIMOS2 = new Array("Limousine Services","a-30003"
HISTORICAL2 = new Array("Historical Sites &
Landmarks","a-40001"
DAYCARE = new Array("Child Day Care","a-40002"
AMUSEMENT = new Array("Amusement Parks, etc.","b-
40002"
CHRISTIAN = new Array("Christian","a-40003"
JEWISH = new Array("Jewish","b-40003"
ISLAM = new Array("Islam","c-40003"
OTHER = new Array("Other","d-40003"
DININGOUT = new Array("Dining
Out",CHINESE,DELIVERY,DINER,FRENCH,GREEK,ITALIAN,MEXICAN,MID
DLEEASTERN,SEAFOOD)
ENTERTAINMENT = new Array("Entertainment &
Arts",MOVIES,THEATRE,MUSEUMS,SPECIAL,GALLERIES)
LATENIGHT = new Array("Late Night
Activities",BARS,CLUBS)
SHOPPING = new Array
("Shopping",GENERAL,WOMENS,MENS,SPORTSSHOPPING)
REALESTATE = new Array("Local Real
Estate",COMMERCIAL,RESIDENTIAL)
GOLFING = new Array("Golfing",GOLFING2)
BEACHES = new Array("Beaches",BEACHES2)
MARINE = new Array("Marine
Activities",CHARTER_FISHING,PARASAILING,RENTALS)
OUTDOORS = new Array("Outdoors
Adventure",TOURS,ESTUARIES)
GYMS = new Array("Gyms & Workout Facilities",GYMS2)
CARS = new Array("Car Rentals",AFFORDABLE,LUXURY)
TAXIS = new Array("Taxi Companies",TAXIS2)
LIMOS = new Array("Limosusine Services",LIMOS2)
HISTORICAL = new Array("Historical Sites &
Landmarks",HISTORICAL2)
CHILDREN = new Array("Children's
Activities",DAYCARE,AMUSEMENT)
RELIGIOUS = new Array("Religious Activities &
Spiritual Organizations",CHRISTIAN,JEWISH,ISLAM,OTHER)
Place = new Array
("",DININGOUT,ENTERTAINMENT,LATENIGHT,SHOPPING,REALESTATE,GO
LFING,BEACHES,MARINE,OUTDOORS,GYMS,CARS,TAXIS,LIMOS,HISTORIC
AL,CHILDREN,RELIGIOUS)
DININGOUT_ID = new Array(CHINESE[0],DELIVERY
[0],DINER[0],FRENCH[0],GREEK[0],ITALIAN[0],MEXICAN
[0],MIDDLEEASTERN[0],SEAFOOD[0])
ENTERTAINMENT_ID = new Array(MOVIES[0],THEATRE
[0],MUSEUMS[0],SPECIAL[0],GALLERIES[0])
LATENIGHT_ID = new Array(BARS[0],CLUBS[0])
SHOPPING_ID = new Array(GENERAL[0],WOMENS[0],MENS
[0],SPORTSSHOPPING[0])
REALESTATE_ID = new Array(COMMERCIAL[0],RESIDENTIAL
[0])
GOLFING_ID = new Array(GOLFING2[0])
BEACHES_ID = new Array(BEACHES2[0])
MARINE_ID = new Array(CHARTER_FISHING[0],PARASAILING
[0],RENTALS[0])
OUTDOORS_ID = new Array(TOURS[0],ESTUARIES[0])
GYMS_ID = new Array(GYMS2[0])
CARS_ID = new Array(AFFORDABLE[0],LUXURY[0])
TAXIS_ID = new Array(TAXIS2[0])
LIMOS_ID = new Array(LIMOS2[0])
HISTORICAL_ID = new Array(HISTORICAL2[0])
CHILDREN_ID = new Array(DAYCARE,AMUSEMENT[0])
RELIGIOUS_ID = new Array(CHRISTIAN[0],JEWISH
[0],ISLAM[0],OTHER[0])
PLACE_ID = new Array
(DININGOUT_ID,ENTERTAINMENT_ID,LATENIGHT_ID,SHOPPING_ID,REAL
ESTATE_ID,GOLFING_ID,BEACHES_ID,MARINE_ID,OUTDOORS_ID,GYMS_I
D,CARS_ID,TAXIS_ID,LIMOS_ID,HISTORICAL_ID,CHILDREN_ID,RELIGI
OUS_ID)
function changevendor_type() {
selected_vendor_type =
document.place.vendor_type.selectedIndex + 1
selected_vendor_type_specific =
document.place.vendor_type_specific.selectedIndex + 1
num_vendor_type_specific = Place
[selected_vendor_type].length-1
num_vendor_type_number = Place[selected_vendor_type]
[selected_vendor_type_specific].length-1
CountryOptionsLength =
document.place.vendor_type_specific.length
CityOptionsLength =
document.place.vendor_type_number.length
for (i=CountryOptionsLength-1; i>0; i--) document.place.vendor_type_specific.options =
null;
for (i=0; i<num_vendor_type_specific; i++)
document.place.vendor_type_specific.options = new Option
(PLACE_ID[selected_vendor_type-1])
for (j=CityOptionsLength-1; j>0; j--)
document.place.vendor_type_number.options[j] = null;
for (j=0; j<num_vendor_type_number; j++)
document.place.vendor_type_number.options[j] = new Option
(Place[selected_vendor_type][selected_vendor_type_specific]
[j+1])
}
function changevendor_type_specific() {
selected_vendor_type =
document.place.vendor_type.selectedIndex + 1
selected_vendor_type_specific =
document.place.vendor_type_specific.selectedIndex + 1
num_vendor_type_number = Place[selected_vendor_type]
[selected_vendor_type_specific].length-1
CityOptionsLength =
document.place.vendor_type_number.length
for (j=CityOptionsLength-1; j>0; j--)
document.place.vendor_type_number.options[j] = null;
for (j=0; j<num_vendor_type_number; j++)
document.place.vendor_type_number.options[j] = new Option
(Place[selected_vendor_type][selected_vendor_type_specific]
[j+1])
}
function SetDefault() {
selected_vendor_type =
document.place.vendor_type.selectedIndex + 1
selected_vendor_type_specific =
document.place.vendor_type_specific.selectedIndex + 1
num_vendor_type_specific = Place
[selected_vendor_type].length-1
num_vendor_type_number = Place[selected_vendor_type]
[selected_vendor_type_specific].length-1
for (i=0; i<num_vendor_type_specific; i++)
document.place.vendor_type_specific.options = new Option
(PLACE_ID[selected_vendor_type-1])
for (j=0; j<num_vendor_type_number; j++)
document.place.vendor_type_number.options[j] = new Option
(Place[selected_vendor_type][selected_vendor_type_specific]
[j+1])
}
</script>
</head>
<BODY basefont=-1>
<body onload="SetDefault()">
<a href="src="alt="Database Doctor" border=0></a><P>
##start first form
<FORM method=post action="database_doctor.cgi">
<INPUT type="hidden" name="password" Value="gdthree">
<INPUT type="hidden" name="user" Value="altaratz">
<center><table border=1 WIDTH="70%" BGCOLOR="#F8F1F1">
<tr><td colspan=2
BGCOLOR="#D5E6E1"><center><B><FONT COLOR="#000000"
size="+1">New Entry Form</FONT></center></B>
</td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Individual Vendor ID Number (add '1' to
previous)</a></td>
<td><input type=text name="vendor_number"
size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Vendor Name</a></td>
<td><input type=text name="vendor_name"
size=25></td></tr>
</form>
##end first form
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Vendor Types & Number</a></td>
##start second form
<form name="place">
<td> <select name="vendor_type"
onchange="changevendor_type()">
<option>Dining Out</option>
<option>Entertainment & Arts</option>
<option>Late Night Activities</option>
<option>Shopping</option>
<option>Local Real Estate</option>
<option>Golfing</option>
<option>Beaches</option>
<option>Marine Activities</option>
<option>Outdoors Adventure</option>
<option>Gyms & Workout Facilities</option>
<option>Car Rentals</option>
<option>Taxi Companies</option>
<option>Limosusine Services</option>
<option>Historical Sites &
Landmarks</option>
<option>Children's Activities</option>
<option>Religious Activities & Spiritual
Organizations</option>
</select>
<br>
<br>
<br>
<select name="vendor_type_specific"
onchange="changevendor_type_specific()">
<option></option>
</select>
<br>
<br>
<br>
<select name="vendor_type_number">
<option></option>
</select>
</form>
##end second form
##start original form again
<FORM method=post action="database_doctor.cgi">
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Path To Image for Banner
Advertisement</a></td>
<td><input type=text name="banner" size=25
value=
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Email</a></td>
<td><input type=text name="address"
size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">City</a></td>
<td><input type=text name="city" size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">State</a></td>
<td><select name="state">
<option value="99">Please Select:</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DC">D.C.</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Phone Number</a></td>
<td><input type=text name="phone" size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Contact Email Address</a></td>
<td><input type=text name="email" size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Website URL</a></td>
<td><input type=text name="url" size=25
value=
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Does the vendor offer any special
discounts?</a></td>
<td><select name="discount_huh">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Available discount(s)</a></td>
<td><input type=text name="discount" size=50
value="Sorry, no discounts available for this
vendor"></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Text for Pop-up Ad</a></td>
<td><input type=text name="perma_tip"
size=25></td></tr>
<tr><td align=center WIDTH="200"
BGCOLOR="#F8F1F1">Full Path to Image File for Pop-up
Ad</a></td>
<td><input type=text name="perma_ad" size=25
value=
</table>
<P></center>
##submit
<center><P><INPUT type="submit" name="add" Value=" Add
this directly to the Database ">
<center><INPUT type="submit" name="preview" Value="
Preview "><P>
<center>
<P><hr><p>
<center><P><INPUT type="Submit" name="startup"
Value=" Enter New Items Form">
<INPUT type="Submit" name="edit" Value=" Edit
the Database ">
<INPUT type="Submit" name="sort" Value=" Sort
the Database "><P>
<INPUT type="Submit" name="search" Value="
Search the Database ">
<INPUT type="Submit" name="print" Value="
Prepare a Printout "><p>
<a href="display.cgi" target="_new">See the Data in
Display.cgi Front End</a><p>
<!-- START ADCYCLE.COM IFRAME RICH MEDIA CODE -->
<!-- © 2000 AdCycle.com All Rights Reserved. -->
<iframe
src="group=6&media=1&id=1&delivery=iframe" height=60 width=468
border=0 marginheight=0 scrolling=no marginwidth=0
frameborder=no>
<a
href="manager=adcycle.com&id=1" target="_top"><img
src="group=6&media=1&id=1" width=468 height=60 border=1
ALT="Click to Visit"></a>
</iframe>
<!-- END ADCYCLE.COM IFRAME RICH MEDIA CODE -->
<center>
<p><font color="#000000"><font size=-2>Copyright
(c) 1997-2000 <a href=" Web
Bazaar</a> Database Doctor.
<br>All rights reserved. Reproduction in whole or
in part in any form or medium
<br>without express written permission of The Web
Bazaar is prohibited.</font></font></center>
</body>
</html>