Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 11-06-2005, 10:53 AM Continued Forms
Average Talker

Posts: 26
Trades: 0
Hello all

I am in the process of creatign a quote page for one of my web sites. This new quote page that I am creating is becoming very long and I was wondering how to make it a three part page. I have seen them where you can do page 1 of 3 but don't know how to make sure that all of the information is sent as one versis three different parts to my office. I would really like the form to come in as one email but split the form so my coustomers don't see or feel the real lenght of my form.

Thanks in advance.
taskhill is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-06-2005, 12:25 PM
Ultra Talker

Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades: 0
Just use invisible fields to store the data on the second and third page.
Orodreth is offline
Reply With Quote
View Public Profile Visit Orodreth's homepage!
 
Old 11-06-2005, 07:15 PM
Average Talker

Posts: 26
Trades: 0
I'm sorry, I'm a hack. How do I do or use invisible fields?
taskhill is offline
Reply With Quote
View Public Profile
 
Old 11-07-2005, 12:04 PM
Ultra Talker

Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades: 0
Oh, sorry, the term's not invisible fields but hidden fields.

Anyway, I guess you know how to send the data from one page to another (using method="POST"). Then, on the second page you'll have to print the data from the forms in hidden fields (using php or another server-side scripting language).

Example:
first page:
HTML Code:
<form name="form" action="page2.php" method="POST">
  <input type="text" name="textfield1" size="10" />
  <input type="submit" name="submit" />
</form>
second page:
HTML Code:
<form name="form2"  action="page3.php" method="POST">
  <input type="hidden" name="textfield1" value="<?php echo $_POST['textfield1']; ?>" />
  <input type="text" name="textfield2" size="10" />
  <input type="submit" name="submit" />
</form>
Orodreth is offline
Reply With Quote
View Public Profile Visit Orodreth's homepage!
 
Old 11-07-2005, 12:34 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
This assumes they can use PHP on their site, but will work fine, another way to do it is to use a JavaScript button that shows/hides different parts of the form, so it's all on 1 page using 1 form:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Untitled Page</title>
		<script type="text/javascript"><!--
function hideshow(shw,hde) {
	document.getElementById(shw).style.display = "block";
	document.getElementById(hde).style.display = "none";
}
//-->
</script>
		<style type="text/css" media="screen"><!--
.hide {
	display: none
	}

--></style>
	</head>

	<body bgcolor="#ffffff">
		<form id="FormName" action="#" method="get" name="FormName">
			<div id="part1">
				<input type="checkbox" name="checkboxName" value="checkboxValue"> Blah
				<p><a href="#" onclick="hideshow('part2','part1'); return false;">Next page ></a></p>
			</div>
			<div id="part2" class="hide"><p>Blerg:</p>
				<p><textarea name="textareaName" rows="4" cols="40"></textarea></p>
				<p><a href="#" onclick="hideshow('part3','part2'); return false;">Next page ></a></p>
			</div>
			<div id="part3" class="hide">
				<p>Blorf:<br>
				<select name="selectName" size="4" multiple>
					<option value="one">first</option>
					<option value="two">second</option>
					<option value="three">third</option>
				</select></p>
			<p><input type="submit" name="submitButtonName"></p>
			</div>
		</form>
		<p></p>
	</body>

</html>
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to Continued Forms
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32037 seconds with 12 queries