Question

How do I hide parts of an ASP page and display when clicking a button?

Asked by: seahawk9

I am re-coding an ASP page (old ASP not .net), the new requirements are to make the long page into 3 seperate pages. But I was wondering if it was possible to have the Next button just hide part of the page and display the second part of the page at the top.

So current page:
Lots of stuff
Part 1
Part 2
Part 3
Submit button

New page:
Part 1
Next button Cancel button Clear button
Part 2 hidden
Part 3 hidden

Click Next and:
Part 1 hidden
Part 2
Part 3 hidden
Previous Next Cancel Clear Button

Click Next and:
Part 1 hidden
Part 2 hidden
Part 3
Previous Submit Cancel Clear Button

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-10-30 at 11:35:23ID23862897
Topics

Active Server Pages (ASP)

,

JavaScript

,

Hypertext Markup Language (HTML)

Participating Experts
3
Points
500
Comments
7

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Hiding checkboxes on asp form
    I want to hide some checkboxes on my asp page. I know the property in Visual Basic to do this is (visible = false)what is the equivalent in asp
  2. Hiding .asp files
    How can i hide my .asp file if i want to install my application to the client's PC.
  3. Hide ASP or JSP code
    Hello, is there a way to hide the code in the case of asp or jsp? (the web server runs locally) thanks
  4. Encrypting/Hiding a returned ASP value in a hidden field
    This is for password recovery. A user enters their email address into a search field, which gets or posts to the results page. The results page contains hidden fields which collect information based on the entered email address, and pass that information to the page that proc...
  5. hide a link
    can i use cfoutput to somehow hide a link? this is the link i want to hide <p style="word-spacing: 0"><a href="http://www.xxxx.com/antiques/english_bath/english_bath.cfm"><h5>English Bath</h5></a></p>

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: numberkruncherPosted on 2008-10-30 at 11:47:41ID: 22844079

The following uses JavaScript to switch between which content is currently being displayed.

The current section is stored in a variable, and the total count of sections is stored in a variable. The rest is just dynamic CSS.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>Demo Page</title>
		<style type="text/css">
		</style>
		<script type="text/javascript">
			var activePart = 1;
			var totalParts = 3;
			function showPrevious() {
				if (activePart > 1) {
					document.getElementById('part' + activePart).style.display = 'none';
					--activePart;
					document.getElementById('part' + activePart).style.display = '';
				}
			}
			function showNext() {
				if (activePart < totalParts) {
					document.getElementById('part' + activePart).style.display = 'none';
					++activePart;
					document.getElementById('part' + activePart).style.display = '';
				}
			}
		</script>
	</head>
	<body>
		<h1>Demo Page</h1>
		<div id="part1">
			Part 1!
		</div>
		<div id="part2" style="display: none">
			Part 2!
		</div>
		<div id="part3" style="display: none">
			Part 3!
		</div>
		<br />
		<input type="button" value="Previous" onclick="showPrevious()" />
		<input type="button" value="Next" onclick="showNext()" />
	</body>
</html>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:

Select allOpen in new window

 

by: saoirse1916Posted on 2008-10-30 at 14:12:14ID: 22845504

If you're submitting the page back to itself -- or to a processing page that then redirects back to the original -- you can simply pass a querystring variable such as "&page=2" and then check for that variable before the code that you want to hide.  For example:

<% If Request.QueryString("page") = "" OR Request.QueryString("page") = "1" Then %>
	<p>Some content for page 1</p>
<% End If %>
<% If Request.QueryString("page") = "2" Then %>
	<p>Some content for page 2</p>
<% End If %>
<% If Request.QueryString("page") = "3" Then %>
	<p>Some content for page 3</p>
<% End If %>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:

Select allOpen in new window

 

by: thorv71Posted on 2008-10-31 at 06:27:01ID: 22849811

I think that the most easy way to do this is to use this command:

<script>
function HidePart2() {
document.getElementById('Part2').style.visibility = 'hidden';
}
</script>
 
<script>
function ShowPart2() {
document.getElementById('Part2').style.visibility = 'visible';
}
</script>
 
<body onload="HidePart2()">
 
Part 1
<br>
<input type="Button" name="button" onclick="ShowPart2()" value="Next">
 
<div id="Part2">
Part 2 hidden
</div>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:

Select allOpen in new window

 

by: seahawk9Posted on 2008-11-07 at 00:32:45ID: 22902559

I must be an idiot. I have tried for days to integrate any of the examples above into my code and I just can't get it to mitwork. Maybe it's because I am using tables. HTML is not my strong point. Here is the code.
If you could please show me how to get it to show part 1 initially, then click next and it goes to part 2, then next again and it goes to part 3. Only on part 3 do I want the submit button to show up:



<html>
<head>
<title>Pitzer College - Online Giving</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./general.css" rel="stylesheet" type="text/css">
</head>
<body background="#333333">
			<table width="619" align="center" border="0" cellspacing="0" cellpadding="0" ID="Table6">
				<TR>
					<TD WIDTH="590">
						<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="590">
 
											<FORM method="post" name="ccprocess" action="ccconfirmation.asp">
											<div align="left">
												<tr valign="bottom">
												<td colspan="6" class="orangehead2">PART 1: EVERY GIFT MAKES A DIFFERENCE</td>
												</tr>
												<br>
												<tr valign="bottom">
											    <td colspan="6" class="bluetxt">Gift Amount*
 
												<input type="radio" name="GiftAmount" value="25.00"> $25
												<input type="radio" name="GiftAmount" value="50.00"> $50
												<input type="radio" name="GiftAmount" value="100.00"> $100
												<input type="radio" name="GiftAmount" value="250.00"> $250
												<input type="radio" name="GiftAmount" value="500.00"> $500
												<input type="radio" name="GiftAmount" value="1000.00"> $1000
												<input type="radio" name="GiftAmount" value="2000.00"> $2000
												<input type="radio" name="GiftAmount" value="Other"> Other<br>
												</td>
												</tr>
												<tr valign="bottom">
											   	<td colspan="6" class="bluetxt"><BR>Please designate my gift for:  </font>
											  	<select name=GiftDesignation size=1 id="Select6">
													<option value=""  <% if GiftDesignation = "" then Response.Write " selected " %> >Choose where to apply your gift:</option>
													<option value="Annual Fund" <% if GiftDesignation = "Annual Fund" then Response.Write " selected " %>>Annual Fund</option>
													<option value="Academic" <% if GiftDesignation = "Academic" then Response.Write " selected " %>>Academic</option>
													<option value="Scholarships" <% if GiftDesignation = "Scholarships" then Response.Write " selected " %>>Scholarships</option>
													<option value="Student Life" <% if GiftDesignation = "Student Life" then Response.Write " selected " %>>Student Life</option>
													<option value="Support" <% if GiftDesignation = "Support" then Response.Write " selected " %>>Support</option>
												</select>
												</td>
												</tr
												<tr valign="middle">
												<td colspan="6" class="bluetxt">
												<BR>
												<font color=""#ff0000"">Special Instructions:</font>
												<BR>
												<font size=1> (Please indicate if you would like the gift to go to a specific scholarship or fund.)</font>
												<textarea name=GiftInstructions cols=30 rows=4 id="Textarea1"><% if GiftInstructions <> "" then Response.Write Request.Form("GiftInstructions") else  %></textarea></td>
												</tr>
												<tr align="bottom">
												<td colspan="7" class="bluetxt"><br>Thank you for making an online contribution today.</td>
												</tr>
 
												<tr align="right">
													<td colspan="7" class="bluetxt">* Indicates a required field</td>
												</tr>
 
												<tr valign="bottom">
												<td colspan="7" class="orangehead2">PART 2: PERSONAL INFORMATION</td>
												</tr>
												<tr valign="bottom">
												<td colspan="6" class="backnav">&nbsp;</td>
												</tr>
 
												<tr valign="bottom">
												<td class="bluetxt">First Name*</td>
												<td><input name="FirstName" value="<%Response.Write request.form("FirstName")%>" type="text" id="Text3"></td>
												</tr>
												<tr valign="bottom">
													<td class="bluetxt">Middle Name</td>
													<td><input name="MiddleName" value="<%Response.Write request.form("MiddleName")%>" type="text" id="Text33"></td>
												</tr>
												<tr valign="bottom">
												<td class="bluetxt">Last Name*</td>
												<td><input name="LastName" value="<%Response.Write request.form("LastName")%>" type="text" id="Text4"></td>
												</tr>
 
 
												<tr>
												<td colspan="3">&nbsp;</td>
												<td class="backnav">&nbsp;</td>
												<td class="backnav">&nbsp;</td>
												</tr>
 
												<tr>
												<td colspan="7" class="bluetxt" >Address*</td>
												</tr>
 
												<tr valign="bottom">
												<td><nobr><font color=""#ff0000"">Street* </font></nobr>
												</td>
												<td valign="bottom" colspan="2">
 
													<input name="Address1" value="<%Response.Write request.form("Address1")%>" type="text" id="Text12" size="30">
													</td>
 
												</tr>
												<tr valign="bottom">
													<td><nobr>Address 2</nobr>
													</td>
													<td colspan="2">
													<input name="Address2" value="<%Response.Write request.form("Address2")%>" type="text" id="Text13" size="30">
													</td>
												</tr>
 
												<tr valign="bottom">
												<td>Address 3</td>
 
												<td colspan="2">
													<input name="Address3" value="<%Response.Write request.form("Address3")%>" type="text" id="Text14" size="30"></td>
												</tr>
 
												<tr valign="bottom">
												<td><font color=""#ff0000"">City*</font></td>
												<td colspan="2">
													<input name="AddressCity" value="<%Response.Write request.form("AddressCity")%>" type="text" id="Text15" size="30"></td>
												</tr>
 
 
												<tr valign="bottom">
 
 
												<td>State</td>
												<td colspan="2">
													<select name="State" size="1" id="Select10" >
													<option value="" <% if SavedState = "" then Response.Write " selected " %>>State</option>
														<option value="AL" <% if SavedState = "AL" then Response.Write " selected " %>>AL</option>
														<option value="AK" <% if SavedState = "AK" then Response.Write " selected " %>>AK</option>
														<option value="AR" <% if SavedState = "AR" then Response.Write " selected " %>>AR</option>
														<option value="AZ" <% if SavedState = "AZ" then Response.Write " selected " %>>AZ</option>
														<option value="CA" <% if SavedState = "CA" then Response.Write " selected " %>>CA</option>
														<option value="CO" <% if SavedState = "CO" then Response.Write " selected " %>>CO</option>
 
														<option value="CT" <% if SavedState = "CT" then Response.Write " selected " %>>CT</option>
														<option value="DC" <% if SavedState = "DC" then Response.Write " selected " %>>DC</option>
														<option value="DE" <% if SavedState = "DE" then Response.Write " selected " %>>DE</option>
														<option value="FL" <% if SavedState = "FL" then Response.Write " selected " %>>FL</option>
														<option value="GA" <% if SavedState = "GA" then Response.Write " selected " %>>GA</option>
														<option value="HI" <% if SavedState = "HI" then Response.Write " selected " %>>HI</option>
														<option value="ID" <% if SavedState = "ID" then Response.Write " selected " %>>ID</option>
														<option value="IL" <% if SavedState = "IL" then Response.Write " selected " %>>IL</option>
 
														<option value="IN" <% if SavedState = "IN" then Response.Write " selected " %>>IN</option>
														<option value="IA" <% if SavedState = "IA" then Response.Write " selected " %>>IA</option>
														<option value="KS" <% if SavedState = "KS" then Response.Write " selected " %>>KS</option>
														<option value="KY" <% if SavedState = "KY" then Response.Write " selected " %>>KY</option>
														<option value="LA" <% if SavedState = "LA" then Response.Write " selected " %>>LA</option>
														<option value="ME" <% if SavedState = "ME" then Response.Write " selected " %>>ME</option>
 
														<option value="MD" <% if SavedState = "MD" then Response.Write " selected " %>>MD</option>
														<option value="MA" <% if SavedState = "MA" then Response.Write " selected " %>>MA</option>
														<option value="MI" <% if SavedState = "MI" then Response.Write " selected " %>>MI</option>
														<option value="MN" <% if SavedState = "MN" then Response.Write " selected " %>>MN</option>
														<option value="MS" <% if SavedState = "MS" then Response.Write " selected " %>>MS</option>
														<option value="MO" <% if SavedState = "MO" then Response.Write " selected " %>>MO</option>
 
														<option value="MT" <% if SavedState = "MT" then Response.Write " selected " %>>MT</option>
														<option value="NE" <% if SavedState = "NE" then Response.Write " selected " %>>NE</option>
														<option value="NV" <% if SavedState = "NV" then Response.Write " selected " %>>NV</option>
														<option value="NH" <% if SavedState = "NH" then Response.Write " selected " %>>NH</option>
														<option value="NJ" <% if SavedState = "NJ" then Response.Write " selected " %>>NJ</option>
														<option value="NM" <% if SavedState = "NM" then Response.Write " selected " %>>NM</option>
 
														<option value="NY" <% if SavedState = "NY" then Response.Write " selected " %>>NY</option>
														<option value="NC" <% if SavedState = "NC" then Response.Write " selected " %>>NC</option>
														<option value="ND" <% if SavedState = "ND" then Response.Write " selected " %>>ND</option>
														<option value="OH" <% if SavedState = "OH" then Response.Write " selected " %>>OH</option>
														<option value="OK" <% if SavedState = "OK" then Response.Write " selected " %>>OK</option>
														<option value="OR" <% if SavedState = "OR" then Response.Write " selected " %>>OR</option>
 
														<option value="PA" <% if SavedState = "PA" then Response.Write " selected " %>>PA</option>
														<option value="RI" <% if SavedState = "RI" then Response.Write " selected " %>>RI</option>
														<option value="SC" <% if SavedState = "SC" then Response.Write " selected " %>>SC</option>
														<option value="SD" <% if SavedState = "SD" then Response.Write " selected " %>>SD</option>
														<option value="TN" <% if SavedState = "TN" then Response.Write " selected " %>>TN</option>
														<option value="TX" <% if SavedState = "TX" then Response.Write " selected " %>>TX</option>
 
														<option value="UT" <% if SavedState = "UT" then Response.Write " selected " %>>UT</option>
														<option value="VT" <% if SavedState = "VT" then Response.Write " selected " %>>VT</option>
														<option value="VA" <% if SavedState = "VA" then Response.Write " selected " %>>VA</option>
														<option value="WA" <% if SavedState = "WA" then Response.Write " selected " %>>WA</option>
														<option value="WV" <% if SavedState = "WV" then Response.Write " selected " %>>WV</option>
														<option value="WI" <% if SavedState = "WI" then Response.Write " selected " %>>WI</option>
 
														<option value="WY" <% if SavedState = "WY" then Response.Write " selected " %>>WY</option>
													</select>
													Zip
													<input name="Zip" value="<%Response.Write request.form("Zip")%>" type="text" id="Text16" size="10"></td>
												</tr>
 
 
												<tr valign="bottom">
												<td>Country</td>
												<td colspan="2">
													<input name="Country" value="<%Response.Write request.form("Country")%>" type="text" id="Text17" size="30"></td>
												</tr>
 
												<tr valign="bottom">
												<td>Home Phone</td>
 
												<td colspan="2">
													<input name="PhoneHome" value="<%Response.Write request.form("PhoneHome")%>" type="text" id="Text18">
													</td>
												</tr>
 
												<tr valign="bottom">
												<td>Cell Phone</td>
 
												<td colspan="2">
													<input name="PhoneCell" value="<%Response.Write request.form("PhoneCell")%>" type="text" id="Text19">
													<input type="radio" name="PhoneNumType" value="CellHome" <%if SavedPhone = "CellHome" then Response.Write " checked " %> ID="Radio17">
													Personal
													<input type="radio" name="PhoneNumType" value="CellWork" <%if SavedPhone = "CellWork" then Response.Write " checked " %> ID="Radio18">
													Work </td>
													</td>
												</tr>
 
 
												<tr valign="bottom">
												<td><font color=""#ff0000"">E-mail*</font>
												</td>
												<td colspan="6">
													<input name="email" value="<%Response.Write request.form("email")%>" type="text" id="Text22" size="30">
 
												<input type="radio" name="EmailType" value="emailHome" <%if SavedEmailType = "emailHome" then Response.Write " checked " %> ID="Radio19">
												<font color=""#ff0000"">Home</font>
												<input type="radio" name="EmailType" value="eMailBusiness" <%if SavedEmailType = "eMailBusiness" then Response.Write " checked " %> ID="Radio20">
												<font color=""#ff0000"">Business</font>
												</td>
 
												</tr>
 
 
											<td colspan="2" class="orangehead2"><font color=""#ff0000"">PART 3: PAYMENT INFORMATION</font></td>
											<table border="0" width="664">
											<TR>
								      				<td width="126" height="30">
												<b>Type of card:</b>
												</td>
												<td height="30">
												<SELECT NAME="cardtype" SIZE="1">
												<OPTION VALUE="DiscoverCard">Discover</option>
												<OPTION SELECTED VALUE="VisaCard">Visa</option>
												<OPTION VALUE="MasterCard">Master Card</option>
												<OPTION VALUE="AmExCard">American Express</option>
												</SELECT>
												</td>
											</TR>
											<TR>
												<td width="126" height="30" valign=top>
												<b>Card Number:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="cardNum" size="20" maxlength=20><br><font face="arial,verdana,helvetica" size="1" color="ff0000">(No dashes or spaces.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Name on card:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="cardName" size="20" maxlength=20>
												</td>
											</TR>
											<TR>
												<TD width="126" height="30">
												<b>Card Expiration:</b>
												</TD>
												<td height="30">
												<select name="cardExpMonth">
													<option value="01">01</option>
													<option value="02">02</option>
													<option value="03">03</option>
													<option value="04">04</option>
													<option value="05">05</option>
													<option value="06">06</option>
													<option value="07">07</option>
													<option value="08">08</option>
													<option value="09">09</option>
													<option value="10">10</option>
													<option value="11">11</option>
													<option value="12">12</option>
												</select>
												&nbsp;
												<select name="cardExpYear">
												<%
												for i = 0 to 9
													response.write("<option value=""")
													response.write(right(year(date()) + i, 2) & """>")
													response.write(year(date()) + i & "</option>")
												next
												%>
												</select>
												</td>
 
											</TR>
 
											<TR>
												<td width="126" height="30">
												<b>Credit Card Security Code:</b>
												</td>
												<td height="30">
													<input type="text" value="" name="cardCSC" size="5" maxlength=4><br><font face="arial,verdana,helvetica" size="1" color="ff0000">(See example to the right.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Billing Address:</b>
												</td>
												<td height="30">
													<font face="arial,verdana,helvetica" size="1" color="ff0000">(Please enter your billing address.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Street:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardStreet" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>City:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardCity" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>State:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardState" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Zip Code:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardZip" size="5" maxlength=10>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Amount:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="GiftAmount" size="15" maxlength=50>
												</td>
											</TR>
								  			</table>
								  			</div>
								  			<p>
											<input type="button" value="Submit" name="B1" onclick="doSubmit();"></p>
											</FORM>
											</FONT>
											</TD>
									</FONT></B>
								</TD>
							</TR>
						</TABLE>
 
						<BR><BR>
 
					<HR>
 
					</TD>
				</TR>
			</TABLE>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:

Select allOpen in new window

 

by: numberkruncherPosted on 2008-11-07 at 05:06:55ID: 22903906

Okay, in this example I have broken your table up into the three sections. It is now possible to hide/unhide table blocks.

I also fixed a few badly formed elements that I came across, but I think there are still a few in there.

Let me know how you get on with this.

<html>
<head>
<title>Pitzer College - Online Giving</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./general.css" rel="stylesheet" type="text/css">
	<script type="text/javascript">
		var g_currentPart = 1, g_totalParts = 3;
		function updateVisiblePart() {
			for (var i = 1; i < g_totalParts; ++i) {
				var el = document.getElementById('part' + i);
				el.style.display = (i == g_currentPart ? '' : 'none');
			}
		}
		function goNextPart() {
			g_currentPart = Math.min(g_currentPart + 1, g_totalParts);
			updateVisiblePart();
		}
		function goPrevPart() {
			g_currentPart = Math.max(g_currentPart - 1, 1);
			updateVisiblePart();
		}
	</script>
</head>
<body background="#333333">
			<table width="619" align="center" border="0" cellspacing="0" cellpadding="0" ID="Table6">
				<TR>
					<TD WIDTH="590">
						<FORM method="post" name="ccprocess" action="ccconfirmation.asp">
							<TABLE ID="part1" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="590">
											<div align="left">
												<tr valign="bottom">
												<td colspan="6" class="orangehead2">PART 1: EVERY GIFT MAKES A DIFFERENCE</td>
												</tr>
												<br>
												<tr valign="bottom">
											    <td colspan="6" class="bluetxt">Gift Amount*
 
												<input type="radio" name="GiftAmount" value="25.00"> $25
												<input type="radio" name="GiftAmount" value="50.00"> $50
												<input type="radio" name="GiftAmount" value="100.00"> $100
												<input type="radio" name="GiftAmount" value="250.00"> $250
												<input type="radio" name="GiftAmount" value="500.00"> $500
												<input type="radio" name="GiftAmount" value="1000.00"> $1000
												<input type="radio" name="GiftAmount" value="2000.00"> $2000
												<input type="radio" name="GiftAmount" value="Other"> Other<br>
												</td>
												</tr>
												<tr valign="bottom">
											   	<td colspan="6" class="bluetxt"><BR>Please designate my gift for:  </font>
											  	<select name=GiftDesignation size=1 id="Select6">
													<option value=""  <% if GiftDesignation = "" then Response.Write " selected " %> >Choose where to apply your gift:</option>
													<option value="Annual Fund" <% if GiftDesignation = "Annual Fund" then Response.Write " selected " %>>Annual Fund</option>
													<option value="Academic" <% if GiftDesignation = "Academic" then Response.Write " selected " %>>Academic</option>
													<option value="Scholarships" <% if GiftDesignation = "Scholarships" then Response.Write " selected " %>>Scholarships</option>
													<option value="Student Life" <% if GiftDesignation = "Student Life" then Response.Write " selected " %>>Student Life</option>
													<option value="Support" <% if GiftDesignation = "Support" then Response.Write " selected " %>>Support</option>
												</select>
												</td>
												</tr
												<tr valign="middle">
												<td colspan="6" class="bluetxt">
												<BR>
												<font color=""#ff0000"">Special Instructions:</font>
												<BR>
												<font size=1> (Please indicate if you would like the gift to go to a specific scholarship or fund.)</font>
												<textarea name=GiftInstructions cols=30 rows=4 id="Textarea1"><% if GiftInstructions <> "" then Response.Write Request.Form("GiftInstructions") else  %></textarea></td>
												</tr>
												<tr align="bottom">
												<td colspan="7" class="bluetxt"><br>Thank you for making an online contribution today.</td>
												</tr>
 
												<tr align="right">
													<td colspan="7" class="bluetxt">* Indicates a required field</td>
												</tr>
 							</TABLE>
							<TABLE ID="part2" style="display:none" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="590">
												<tr valign="bottom">
												<td colspan="7" class="orangehead2">PART 2: PERSONAL INFORMATION</td>
												</tr>
												<tr valign="bottom">
												<td colspan="6" class="backnav">&nbsp;</td>
												</tr>
 
												<tr valign="bottom">
												<td class="bluetxt">First Name*</td>
												<td><input name="FirstName" value="<%Response.Write request.form("FirstName")%>" type="text" id="Text3"></td>
												</tr>
												<tr valign="bottom">
													<td class="bluetxt">Middle Name</td>
													<td><input name="MiddleName" value="<%Response.Write request.form("MiddleName")%>" type="text" id="Text33"></td>
												</tr>
												<tr valign="bottom">
												<td class="bluetxt">Last Name*</td>
												<td><input name="LastName" value="<%Response.Write request.form("LastName")%>" type="text" id="Text4"></td>
												</tr>
 
 
												<tr>
												<td colspan="3">&nbsp;</td>
												<td class="backnav">&nbsp;</td>
												<td class="backnav">&nbsp;</td>
												</tr>
 
												<tr>
												<td colspan="7" class="bluetxt" >Address*</td>
												</tr>
 
												<tr valign="bottom">
												<td><nobr><font color=""#ff0000"">Street* </font></nobr>
												</td>
												<td valign="bottom" colspan="2">
 
													<input name="Address1" value="<%Response.Write request.form("Address1")%>" type="text" id="Text12" size="30">
													</td>
 
												</tr>
												<tr valign="bottom">
													<td><nobr>Address 2</nobr>
													</td>
													<td colspan="2">
													<input name="Address2" value="<%Response.Write request.form("Address2")%>" type="text" id="Text13" size="30">
													</td>
												</tr>
 
												<tr valign="bottom">
												<td>Address 3</td>
 
												<td colspan="2">
													<input name="Address3" value="<%Response.Write request.form("Address3")%>" type="text" id="Text14" size="30"></td>
												</tr>
 
												<tr valign="bottom">
												<td><font color=""#ff0000"">City*</font></td>
												<td colspan="2">
													<input name="AddressCity" value="<%Response.Write request.form("AddressCity")%>" type="text" id="Text15" size="30"></td>
												</tr>
 
 
												<tr valign="bottom">
 
 
												<td>State</td>
												<td colspan="2">
													<select name="State" size="1" id="Select10" >
													<option value="" <% if SavedState = "" then Response.Write " selected " %>>State</option>
														<option value="AL" <% if SavedState = "AL" then Response.Write " selected " %>>AL</option>
														<option value="AK" <% if SavedState = "AK" then Response.Write " selected " %>>AK</option>
														<option value="AR" <% if SavedState = "AR" then Response.Write " selected " %>>AR</option>
														<option value="AZ" <% if SavedState = "AZ" then Response.Write " selected " %>>AZ</option>
														<option value="CA" <% if SavedState = "CA" then Response.Write " selected " %>>CA</option>
														<option value="CO" <% if SavedState = "CO" then Response.Write " selected " %>>CO</option>
 
														<option value="CT" <% if SavedState = "CT" then Response.Write " selected " %>>CT</option>
														<option value="DC" <% if SavedState = "DC" then Response.Write " selected " %>>DC</option>
														<option value="DE" <% if SavedState = "DE" then Response.Write " selected " %>>DE</option>
														<option value="FL" <% if SavedState = "FL" then Response.Write " selected " %>>FL</option>
														<option value="GA" <% if SavedState = "GA" then Response.Write " selected " %>>GA</option>
														<option value="HI" <% if SavedState = "HI" then Response.Write " selected " %>>HI</option>
														<option value="ID" <% if SavedState = "ID" then Response.Write " selected " %>>ID</option>
														<option value="IL" <% if SavedState = "IL" then Response.Write " selected " %>>IL</option>
 
														<option value="IN" <% if SavedState = "IN" then Response.Write " selected " %>>IN</option>
														<option value="IA" <% if SavedState = "IA" then Response.Write " selected " %>>IA</option>
														<option value="KS" <% if SavedState = "KS" then Response.Write " selected " %>>KS</option>
														<option value="KY" <% if SavedState = "KY" then Response.Write " selected " %>>KY</option>
														<option value="LA" <% if SavedState = "LA" then Response.Write " selected " %>>LA</option>
														<option value="ME" <% if SavedState = "ME" then Response.Write " selected " %>>ME</option>
 
														<option value="MD" <% if SavedState = "MD" then Response.Write " selected " %>>MD</option>
														<option value="MA" <% if SavedState = "MA" then Response.Write " selected " %>>MA</option>
														<option value="MI" <% if SavedState = "MI" then Response.Write " selected " %>>MI</option>
														<option value="MN" <% if SavedState = "MN" then Response.Write " selected " %>>MN</option>
														<option value="MS" <% if SavedState = "MS" then Response.Write " selected " %>>MS</option>
														<option value="MO" <% if SavedState = "MO" then Response.Write " selected " %>>MO</option>
 
														<option value="MT" <% if SavedState = "MT" then Response.Write " selected " %>>MT</option>
														<option value="NE" <% if SavedState = "NE" then Response.Write " selected " %>>NE</option>
														<option value="NV" <% if SavedState = "NV" then Response.Write " selected " %>>NV</option>
														<option value="NH" <% if SavedState = "NH" then Response.Write " selected " %>>NH</option>
														<option value="NJ" <% if SavedState = "NJ" then Response.Write " selected " %>>NJ</option>
														<option value="NM" <% if SavedState = "NM" then Response.Write " selected " %>>NM</option>
 
														<option value="NY" <% if SavedState = "NY" then Response.Write " selected " %>>NY</option>
														<option value="NC" <% if SavedState = "NC" then Response.Write " selected " %>>NC</option>
														<option value="ND" <% if SavedState = "ND" then Response.Write " selected " %>>ND</option>
														<option value="OH" <% if SavedState = "OH" then Response.Write " selected " %>>OH</option>
														<option value="OK" <% if SavedState = "OK" then Response.Write " selected " %>>OK</option>
														<option value="OR" <% if SavedState = "OR" then Response.Write " selected " %>>OR</option>
 
														<option value="PA" <% if SavedState = "PA" then Response.Write " selected " %>>PA</option>
														<option value="RI" <% if SavedState = "RI" then Response.Write " selected " %>>RI</option>
														<option value="SC" <% if SavedState = "SC" then Response.Write " selected " %>>SC</option>
														<option value="SD" <% if SavedState = "SD" then Response.Write " selected " %>>SD</option>
														<option value="TN" <% if SavedState = "TN" then Response.Write " selected " %>>TN</option>
														<option value="TX" <% if SavedState = "TX" then Response.Write " selected " %>>TX</option>
 
														<option value="UT" <% if SavedState = "UT" then Response.Write " selected " %>>UT</option>
														<option value="VT" <% if SavedState = "VT" then Response.Write " selected " %>>VT</option>
														<option value="VA" <% if SavedState = "VA" then Response.Write " selected " %>>VA</option>
														<option value="WA" <% if SavedState = "WA" then Response.Write " selected " %>>WA</option>
														<option value="WV" <% if SavedState = "WV" then Response.Write " selected " %>>WV</option>
														<option value="WI" <% if SavedState = "WI" then Response.Write " selected " %>>WI</option>
 
														<option value="WY" <% if SavedState = "WY" then Response.Write " selected " %>>WY</option>
													</select>
													Zip
													<input name="Zip" value="<%Response.Write request.form("Zip")%>" type="text" id="Text16" size="10"></td>
												</tr>
 
 
												<tr valign="bottom">
												<td>Country</td>
												<td colspan="2">
													<input name="Country" value="<%Response.Write request.form("Country")%>" type="text" id="Text17" size="30"></td>
												</tr>
 
												<tr valign="bottom">
												<td>Home Phone</td>
 
												<td colspan="2">
													<input name="PhoneHome" value="<%Response.Write request.form("PhoneHome")%>" type="text" id="Text18">
													</td>
												</tr>
 
												<tr valign="bottom">
												<td>Cell Phone</td>
 
												<td colspan="2">
													<input name="PhoneCell" value="<%Response.Write request.form("PhoneCell")%>" type="text" id="Text19">
													<input type="radio" name="PhoneNumType" value="CellHome" <%if SavedPhone = "CellHome" then Response.Write " checked " %> ID="Radio17">
													Personal
													<input type="radio" name="PhoneNumType" value="CellWork" <%if SavedPhone = "CellWork" then Response.Write " checked " %> ID="Radio18">
													Work </td>
													</td>
												</tr>
 
 
												<tr valign="bottom">
												<td><font color=""#ff0000"">E-mail*</font>
												</td>
												<td colspan="6">
													<input name="email" value="<%Response.Write request.form("email")%>" type="text" id="Text22" size="30">
 
												<input type="radio" name="EmailType" value="emailHome" <%if SavedEmailType = "emailHome" then Response.Write " checked " %> ID="Radio19">
												<font color=""#ff0000"">Home</font>
												<input type="radio" name="EmailType" value="eMailBusiness" <%if SavedEmailType = "eMailBusiness" then Response.Write " checked " %> ID="Radio20">
												<font color=""#ff0000"">Business</font>
												</td>
 
												</tr>
 
 							</TABLE>
							<TABLE ID="part3" style="display:none" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="590">
											<table border="0" width="664">
												<tr valign="bottom">
													<td colspan="7" class="orangehead2">PART 3: PAYMENT INFORMATION</td>
												</tr>
											<TR>
								      				<td width="126" height="30">
												<b>Type of card:</b>
												</td>
												<td height="30">
												<SELECT NAME="cardtype" SIZE="1">
												<OPTION VALUE="DiscoverCard">Discover</option>
												<OPTION SELECTED VALUE="VisaCard">Visa</option>
												<OPTION VALUE="MasterCard">Master Card</option>
												<OPTION VALUE="AmExCard">American Express</option>
												</SELECT>
												</td>
											</TR>
											<TR>
												<td width="126" height="30" valign=top>
												<b>Card Number:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="cardNum" size="20" maxlength=20><br><font face="arial,verdana,helvetica" size="1" color="ff0000">(No dashes or spaces.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Name on card:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="cardName" size="20" maxlength=20>
												</td>
											</TR>
											<TR>
												<TD width="126" height="30">
												<b>Card Expiration:</b>
												</TD>
												<td height="30">
												<select name="cardExpMonth">
													<option value="01">01</option>
													<option value="02">02</option>
													<option value="03">03</option>
													<option value="04">04</option>
													<option value="05">05</option>
													<option value="06">06</option>
													<option value="07">07</option>
													<option value="08">08</option>
													<option value="09">09</option>
													<option value="10">10</option>
													<option value="11">11</option>
													<option value="12">12</option>
												</select>
												&nbsp;
												<select name="cardExpYear">
												<%
												for i = 0 to 9
													response.write("<option value=""")
													response.write(right(year(date()) + i, 2) & """>")
													response.write(year(date()) + i & "</option>")
												next
												%>
												</select>
												</td>
 
											</TR>
 
											<TR>
												<td width="126" height="30">
												<b>Credit Card Security Code:</b>
												</td>
												<td height="30">
													<input type="text" value="" name="cardCSC" size="5" maxlength=4><br><font face="arial,verdana,helvetica" size="1" color="ff0000">(See example to the right.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Billing Address:</b>
												</td>
												<td height="30">
													<font face="arial,verdana,helvetica" size="1" color="ff0000">(Please enter your billing address.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Street:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardStreet" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>City:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardCity" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>State:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardState" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Zip Code:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardZip" size="5" maxlength=10>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Amount:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="GiftAmount" size="15" maxlength=50>
												</td>
											</TR>
								  			</table>
								  			</div>
								  			<p>
											<input type="button" value="Submit" name="B1" onclick="doSubmit();"></p>
											</FONT>
											</TD>
									</FONT></B>
								</TD>
							</TR>
						</TABLE>
 
						<input type="button" value="Previous Part" onclick="goPrevPart()"></input>
						&nbsp;&nbsp;&nbsp;
						<input type="button" value="Next Part" onclick="goNextPart()"></input>
					</FORM>
 
						<BR><BR>
 
					<HR>
 
					</TD>
				</TR>
			</TABLE>
</body>
</html>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:

Select allOpen in new window

 

by: seahawk9Posted on 2008-11-07 at 08:25:38ID: 22905895

Ok, part 2 is hidden, but part 1 and 3 are visible. I only want one part to show at a time. And a huge thanks for the help btw.

 

by: seahawk9Posted on 2008-11-07 at 11:46:44ID: 22907874

It's working now, I had a few more bad table tags causing it to act up. Final version below.

<html>
<head>
<title>Pitzer College - Online Giving</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./general.css" rel="stylesheet" type="text/css">
	<script type="text/javascript">
		var g_currentPart = 1, g_totalParts = 4;
		function updateVisiblePart() {
			for (var i = 1; i < g_totalParts; ++i) {
				var el = document.getElementById('part' + i);
				el.style.display = (i == g_currentPart ? '' : 'none');
			}
		}
		function goNextPart() {
			g_currentPart = Math.min(g_currentPart + 1, g_totalParts);
			updateVisiblePart();
		}
		function goPrevPart() {
			g_currentPart = Math.max(g_currentPart - 1, 1);
			updateVisiblePart();
		}
	</script>
</head>
<body background="#333333">
			<table width="619" align="center" border="0" cellspacing="0" cellpadding="0">
				<TR>
					<TD WIDTH="590">
						<FORM method="post" name="ccprocess" action="ccconfirmation.asp">
							<TABLE ID="part1" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="590">
												<tr valign="bottom">
												<td colspan="6" class="orangehead2">PART 1: EVERY GIFT MAKES A DIFFERENCE</td>
												</tr>
												<br>
												<tr valign="bottom">
											    <td colspan="6" class="bluetxt">Gift Amount*
 
												<input type="radio" name="GiftAmount" value="25.00"> $25
												<input type="radio" name="GiftAmount" value="50.00"> $50
												<input type="radio" name="GiftAmount" value="100.00"> $100
												<input type="radio" name="GiftAmount" value="250.00"> $250
												<input type="radio" name="GiftAmount" value="500.00"> $500
												<input type="radio" name="GiftAmount" value="1000.00"> $1000
												<input type="radio" name="GiftAmount" value="2000.00"> $2000
												<input type="radio" name="GiftAmount" value="Other"> Other<br>
												</td>
												</tr>
												<tr valign="bottom">
											   	<td colspan="6" class="bluetxt"><BR>Please designate my gift for:  </font>
											  	<select name=GiftDesignation size=1 id="Select6">
													<option value=""  <% if GiftDesignation = "" then Response.Write " selected " %> >Choose where to apply your gift:</option>
													<option value="Annual Fund" <% if GiftDesignation = "Annual Fund" then Response.Write " selected " %>>Annual Fund</option>
													<option value="Academic" <% if GiftDesignation = "Academic" then Response.Write " selected " %>>Academic</option>
													<option value="Scholarships" <% if GiftDesignation = "Scholarships" then Response.Write " selected " %>>Scholarships</option>
													<option value="Student Life" <% if GiftDesignation = "Student Life" then Response.Write " selected " %>>Student Life</option>
													<option value="Support" <% if GiftDesignation = "Support" then Response.Write " selected " %>>Support</option>
												</select>
												</td>
												</tr
												<tr valign="middle">
												<td colspan="6" class="bluetxt">
												<BR>
												<font color=""#ff0000"">Special Instructions:</font>
												<BR>
												<font size=1> (Please indicate if you would like the gift to go to a specific scholarship or fund.)</font>
												<textarea name=GiftInstructions cols=30 rows=4 id="Textarea1"><% if GiftInstructions <> "" then Response.Write Request.Form("GiftInstructions") else  %></textarea></td>
												</tr>
												<tr align="bottom">
												<td colspan="7" class="bluetxt"><br>Thank you for making an online contribution today.</td>
												</tr>
 
												<tr align="right">
													<td colspan="7" class="bluetxt">* Indicates a required field</td>
												</tr>
 							</TABLE>
							<TABLE ID="part2" style="display:none" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="590">
												<tr valign="bottom">
												<td colspan="7" class="orangehead2">PART 2: PERSONAL INFORMATION</td>
												</tr>
												<tr valign="bottom">
												<td colspan="6" class="backnav">&nbsp;</td>
												</tr>
 
												<tr valign="bottom">
												<td class="bluetxt">First Name*</td>
												<td><input name="FirstName" value="<%Response.Write request.form("FirstName")%>" type="text" id="Text3"></td>
												</tr>
												<tr valign="bottom">
													<td class="bluetxt">Middle Name</td>
													<td><input name="MiddleName" value="<%Response.Write request.form("MiddleName")%>" type="text" id="Text33"></td>
												</tr>
												<tr valign="bottom">
												<td class="bluetxt">Last Name*</td>
												<td><input name="LastName" value="<%Response.Write request.form("LastName")%>" type="text" id="Text4"></td>
												</tr>
 
												<tr valign="bottom">
												<td colspan="6" class="bluetxt">Relation to Pitzer
													&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
													<SELECT size=1 name=DonorRelation ID="Select8">
													<option value=""  <% if DonorRelation = "" then Response.Write " selected " %>>Select One</option>
													<OPTION value=Alumni <% if DonorRelation = "Alumni" then Response.Write " selected " %>>Alumni</OPTION>
													<OPTION value=Faculty/Staff <% if DonorRelation = "Faculty/Staff" then Response.Write " selected " %>>Faculty/Staff</OPTION>
													<OPTION value=Friend <% if DonorRelation = "Friend" then Response.Write " selected " %>>Friend</OPTION>
													<OPTION value=Parent <% if DonorRelation = "Parent" then Response.Write " selected " %>>Parent</OPTION>
													<OPTION value=Other <% if DonorRelation = "Other" then Response.Write " selected " %>>Other</OPTION>
													</SELECT></td>
													<td>
												</tr>
												<tr valign="bottom">
												<td colspan="6" class="bluetxt">Pitzer Class (yyyy)
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<input name="ClassYear" value="<%Response.Write request.form("ClassYear")%>" type="text" id="Text5" size="4" maxlength="4"></td>
												</tr>
 
												<tr>
												<td colspan="3">&nbsp;</td>
												<td class="backnav">&nbsp;</td>
												<td class="backnav">&nbsp;</td>
												</tr>
 
												<tr>
												<td colspan="7" class="bluetxt" >Address*</td>
												</tr>
 
												<tr valign="bottom">
												<td><nobr><font color=""#ff0000"">Street* </font></nobr>
												</td>
												<td valign="bottom" colspan="2">
 
													<input name="Address1" value="<%Response.Write request.form("Address1")%>" type="text" id="Text12" size="30">
													</td>
 
												</tr>
												<tr valign="bottom">
													<td><nobr>Address 2</nobr>
													</td>
													<td colspan="2">
													<input name="Address2" value="<%Response.Write request.form("Address2")%>" type="text" id="Text13" size="30">
													</td>
												</tr>
 
												<tr valign="bottom">
												<td>Address 3</td>
 
												<td colspan="2">
													<input name="Address3" value="<%Response.Write request.form("Address3")%>" type="text" id="Text14" size="30"></td>
												</tr>
 
												<tr valign="bottom">
												<td><font color=""#ff0000"">City*</font></td>
												<td colspan="2">
													<input name="AddressCity" value="<%Response.Write request.form("AddressCity")%>" type="text" id="Text15" size="30"></td>
												</tr>
 
 
												<tr valign="bottom">
 
 
												<td>State</td>
												<td colspan="2">
													<select name="State" size="1" id="Select10" >
													<option value="" <% if SavedState = "" then Response.Write " selected " %>>State</option>
														<option value="AL" <% if SavedState = "AL" then Response.Write " selected " %>>AL</option>
														<option value="AK" <% if SavedState = "AK" then Response.Write " selected " %>>AK</option>
														<option value="AR" <% if SavedState = "AR" then Response.Write " selected " %>>AR</option>
														<option value="AZ" <% if SavedState = "AZ" then Response.Write " selected " %>>AZ</option>
														<option value="CA" <% if SavedState = "CA" then Response.Write " selected " %>>CA</option>
														<option value="CO" <% if SavedState = "CO" then Response.Write " selected " %>>CO</option>
 
														<option value="CT" <% if SavedState = "CT" then Response.Write " selected " %>>CT</option>
														<option value="DC" <% if SavedState = "DC" then Response.Write " selected " %>>DC</option>
														<option value="DE" <% if SavedState = "DE" then Response.Write " selected " %>>DE</option>
														<option value="FL" <% if SavedState = "FL" then Response.Write " selected " %>>FL</option>
														<option value="GA" <% if SavedState = "GA" then Response.Write " selected " %>>GA</option>
														<option value="HI" <% if SavedState = "HI" then Response.Write " selected " %>>HI</option>
														<option value="ID" <% if SavedState = "ID" then Response.Write " selected " %>>ID</option>
														<option value="IL" <% if SavedState = "IL" then Response.Write " selected " %>>IL</option>
 
														<option value="IN" <% if SavedState = "IN" then Response.Write " selected " %>>IN</option>
														<option value="IA" <% if SavedState = "IA" then Response.Write " selected " %>>IA</option>
														<option value="KS" <% if SavedState = "KS" then Response.Write " selected " %>>KS</option>
														<option value="KY" <% if SavedState = "KY" then Response.Write " selected " %>>KY</option>
														<option value="LA" <% if SavedState = "LA" then Response.Write " selected " %>>LA</option>
														<option value="ME" <% if SavedState = "ME" then Response.Write " selected " %>>ME</option>
 
														<option value="MD" <% if SavedState = "MD" then Response.Write " selected " %>>MD</option>
														<option value="MA" <% if SavedState = "MA" then Response.Write " selected " %>>MA</option>
														<option value="MI" <% if SavedState = "MI" then Response.Write " selected " %>>MI</option>
														<option value="MN" <% if SavedState = "MN" then Response.Write " selected " %>>MN</option>
														<option value="MS" <% if SavedState = "MS" then Response.Write " selected " %>>MS</option>
														<option value="MO" <% if SavedState = "MO" then Response.Write " selected " %>>MO</option>
 
														<option value="MT" <% if SavedState = "MT" then Response.Write " selected " %>>MT</option>
														<option value="NE" <% if SavedState = "NE" then Response.Write " selected " %>>NE</option>
														<option value="NV" <% if SavedState = "NV" then Response.Write " selected " %>>NV</option>
														<option value="NH" <% if SavedState = "NH" then Response.Write " selected " %>>NH</option>
														<option value="NJ" <% if SavedState = "NJ" then Response.Write " selected " %>>NJ</option>
														<option value="NM" <% if SavedState = "NM" then Response.Write " selected " %>>NM</option>
 
														<option value="NY" <% if SavedState = "NY" then Response.Write " selected " %>>NY</option>
														<option value="NC" <% if SavedState = "NC" then Response.Write " selected " %>>NC</option>
														<option value="ND" <% if SavedState = "ND" then Response.Write " selected " %>>ND</option>
														<option value="OH" <% if SavedState = "OH" then Response.Write " selected " %>>OH</option>
														<option value="OK" <% if SavedState = "OK" then Response.Write " selected " %>>OK</option>
														<option value="OR" <% if SavedState = "OR" then Response.Write " selected " %>>OR</option>
 
														<option value="PA" <% if SavedState = "PA" then Response.Write " selected " %>>PA</option>
														<option value="RI" <% if SavedState = "RI" then Response.Write " selected " %>>RI</option>
														<option value="SC" <% if SavedState = "SC" then Response.Write " selected " %>>SC</option>
														<option value="SD" <% if SavedState = "SD" then Response.Write " selected " %>>SD</option>
														<option value="TN" <% if SavedState = "TN" then Response.Write " selected " %>>TN</option>
														<option value="TX" <% if SavedState = "TX" then Response.Write " selected " %>>TX</option>
 
														<option value="UT" <% if SavedState = "UT" then Response.Write " selected " %>>UT</option>
														<option value="VT" <% if SavedState = "VT" then Response.Write " selected " %>>VT</option>
														<option value="VA" <% if SavedState = "VA" then Response.Write " selected " %>>VA</option>
														<option value="WA" <% if SavedState = "WA" then Response.Write " selected " %>>WA</option>
														<option value="WV" <% if SavedState = "WV" then Response.Write " selected " %>>WV</option>
														<option value="WI" <% if SavedState = "WI" then Response.Write " selected " %>>WI</option>
 
														<option value="WY" <% if SavedState = "WY" then Response.Write " selected " %>>WY</option>
													</select>
													Zip
													<input name="Zip" value="<%Response.Write request.form("Zip")%>" type="text" id="Text16" size="10"></td>
												</tr>
 
 
												<tr valign="bottom">
												<td>Country</td>
												<td colspan="2">
													<input name="Country" value="<%Response.Write request.form("Country")%>" type="text" id="Text17" size="30"></td>
												</tr>
 
												<tr valign="bottom">
												<td>Home Phone</td>
 
												<td colspan="2">
													<input name="PhoneHome" value="<%Response.Write request.form("PhoneHome")%>" type="text" id="Text18">
													</td>
												</tr>
 
												<tr valign="bottom">
												<td>Cell Phone</td>
 
												<td colspan="2">
													<input name="PhoneCell" value="<%Response.Write request.form("PhoneCell")%>" type="text" id="Text19">
													<input type="radio" name="PhoneNumType" value="CellHome" <%if SavedPhone = "CellHome" then Response.Write " checked " %> ID="Radio17">
													Personal
													<input type="radio" name="PhoneNumType" value="CellWork" <%if SavedPhone = "CellWork" then Response.Write " checked " %> ID="Radio18">
													Work </td>
													</td>
												</tr>
 
 
												<tr valign="bottom">
												<td><font color=""#ff0000"">E-mail*</font>
												</td>
												<td colspan="6">
													<input name="email" value="<%Response.Write request.form("email")%>" type="text" id="Text22" size="30">
 
												<input type="radio" name="EmailType" value="emailHome" <%if SavedEmailType = "emailHome" then Response.Write " checked " %> ID="Radio19">
												<font color=""#ff0000"">Home</font>
												<input type="radio" name="EmailType" value="eMailBusiness" <%if SavedEmailType = "eMailBusiness" then Response.Write " checked " %> ID="Radio20">
												<font color=""#ff0000"">Business</font>
												</td>
												</tr>
 
 							</TABLE>
							<TABLE ID="part3" style="display:none" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="590">
											<tr valign="bottom">
												<td colspan="7" class="orangehead2">PART 3: PAYMENT INFORMATION</td>
											</tr>
											<TR>
								      				<td width="126" height="30">
												<b>Type of card:</b>
												</td>
												<td height="30">
												<SELECT NAME="cardtype" SIZE="1">
												<OPTION VALUE="DiscoverCard">Discover</option>
												<OPTION SELECTED VALUE="VisaCard">Visa</option>
												<OPTION VALUE="MasterCard">Master Card</option>
												<OPTION VALUE="AmExCard">American Express</option>
												</SELECT>
												</td>
											</TR>
											<TR>
												<td width="126" height="30" valign=top>
												<b>Card Number:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="cardNum" size="20" maxlength=20><br><font face="arial,verdana,helvetica" size="1" color="ff0000">(No dashes or spaces.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Name on card:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="cardName" size="20" maxlength=20>
												</td>
											</TR>
											<TR>
												<TD width="126" height="30">
												<b>Card Expiration:</b>
												</TD>
												<td height="30">
												<select name="cardExpMonth">
													<option value="01">01</option>
													<option value="02">02</option>
													<option value="03">03</option>
													<option value="04">04</option>
													<option value="05">05</option>
													<option value="06">06</option>
													<option value="07">07</option>
													<option value="08">08</option>
													<option value="09">09</option>
													<option value="10">10</option>
													<option value="11">11</option>
													<option value="12">12</option>
												</select>
												&nbsp;
												<select name="cardExpYear">
												<%
												for i = 0 to 9
													response.write("<option value=""")
													response.write(right(year(date()) + i, 2) & """>")
													response.write(year(date()) + i & "</option>")
												next
												%>
												</select>
												</td>
 
											</TR>
 
											<TR>
												<td width="126" height="30">
												<b>Credit Card Security Code:</b>
												</td>
												<td height="30">
													<input type="text" value="" name="cardCSC" size="5" maxlength=4><br><font face="arial,verdana,helvetica" size="1" color="ff0000">(See example to the right.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Billing Address:</b>
												</td>
												<td height="30">
													<font face="arial,verdana,helvetica" size="1" color="ff0000">(Please enter your billing address.)</font>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Street:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardStreet" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>City:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardCity" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>State:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardState" size="15" maxlength=50>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Zip Code:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="CardZip" size="5" maxlength=10>
												</td>
											</TR>
											<TR>
												<td width="126" height="30">
												<b>Amount:</b>
												</td>
												<td height="30">
												<input type="text" value="" name="GiftAmount" size="15" maxlength=50>
												</td>
											</TR>
 
 
											<input type="button" value="Submit" name="B1" onclick="doSubmit();"></p>
						</TABLE>
 
						<input type="button" value="Previous Part" onclick="goPrevPart()"></input>
						&nbsp;&nbsp;&nbsp;
						<input type="button" value="Next Part" onclick="goNextPart()"></input>
				</FORM>
			</TD>
		</TR>
	</TABLE>
</body>
</html>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:

Select allOpen in new window

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...