Forum Moderators: coopster

Message Too Old, No Replies

MultiPage FormMail

         

techoveride

6:22 pm on Dec 13, 2006 (gmt 0)

10+ Year Member



I am needing help with creating the php for a multipage form. I know how to make the forms but I am not sure how to code the php and what to add to the forms to make them work with the php.

mattcg

11:00 pm on Dec 13, 2006 (gmt 0)

10+ Year Member



By multipage I'm assuming that your form is spread out over two or more pages. In this example I'll use a form spread over two pages, but you can easily apply the same concept to more pages.


<!-- Form_part_1.php -->
<form action="Form_part_2.php" method="post">
Name: <input type="text" id="name" />
Email address: <input type="text" id="email" />
</form>


<!-- Form_part_2.php -->
<?php
$name = $_POST['name'];
$email = $_POST['email'];
?>
<form action="Form_process_input.php" method="post">
<input type="hidden" id="name" value="<?php echo $name;?>" />
<input type="hidden" id="email" value="<?php echo $email;?>" />
Comments: <textarea id="comments"></textarea>
</form>

eelixduppy

11:24 pm on Dec 13, 2006 (gmt 0)



...Or you can use Sessions [us3.php.net]

Welcome to WebmasterWorld mattcg! :)