close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multi-part / multi-page form

Thread began 1/06/2010 11:27 am by anonymous | Last modified 6/07/2016 4:52 pm by Ray Borduin | 2260 views | 11 replies |

anonymous

Multi-part / multi-page form

I used to know how to do this but it's been a while
how do I set up a multipart/multi-page from universal email

happy new decade to all

R

Sign in to reply to this post

Jason ByrnesWebAssist

on page 1, set the forms method to post, and the action to go to page 2:

html:
<form name="form1" method="post" action="page2.php">
<label for="fName">First Name</label>
<input type="text" name="fName" id="fName">
<br>
<label for="lName">Last Name</label>
<input type="text" name="lName" id="lName">
<br>
<label for="submit"></label>
<input type="submit" name="submit" id="submit" value="Submit">
</form>




on page 2, in addition to the new form fields, you need to create hidden form fields to capture the data that was posted from page 1, if it is the last page, the action can be left blank:

php:
<form name="form1" method="post"  action="">

  <label for="city">City:</label>
  <input type="text" name="city" id="city">
  <br>
  <label for="state">State:</label>
  <input type="text" name="state" id="state">
  <br />  
  <input name="fName" type="hidden" id="fName" value="<?php echo((isset($_POST["fName"]))?$_POST["fName"]:""?>">  
  <input name="lName" type="hidden" id="lName" value="<?php echo((isset($_POST["lName"]))?$_POST["lName"]:""?>">  
  <input type="submit" name="submit" id="submit" value="Submit">
</form>
Sign in to reply to this post

anonymous

Thanks buddy

happy new decade... wow... now i remember - it works like a top
much thanks again R -

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Jamie

Hey Ray

Am looking to set up a form that spans 8 pages (its a bigun!) - would I follow the above like this?

Page 1 .submit
Page 2 hidden fields of input from page 1
page 3 hidden fields of input from page 2 AND page 1
page 4 hidden fields of input from page 3 AND page 2 AND page 1
etc?

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

That would work, but these days you can use the webassist persist form server behavior on each page and it might be easier.

Sign in to reply to this post

Jamie

ok cool. never used it before. do i split my form up into the 8 pages required ? am assuming they all need <form></form> on them,?

Sign in to reply to this post

Ray BorduinWebAssist

Yes. The persistence server behavior will save the entire form in the session and allow you to refer to it on later pages.

Sign in to reply to this post

Jamie

Hi Ray

Am not sure if am doing this correctly but have split my long form into 9 pages and added the persist to each page (see attached) but have a couple of questions:

a) not sure if I have done them right
b) how to use the persist data on the final page to submit it?
c) do I need universal email on each and every one of the pages?

Cheers

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you did it right.

Once you add the persistent form it should be available from any page in the bindings panel to use wherever you want.

You only need the Universal Email on the page you want to send the emails from.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...