Multi page forms - how do ya make them?

They have: 112 posts

Joined: Aug 2001

I need to make some multipage forms and I don't know the easiest way to do it. I've always used a cgi script (currently using nms) but it doesn't handle multi pages. I'm reading that you can use php or javascripts. Are they both secure? It sounds a bit complicated if you're not well versed in these languages. I can't believe there isn't a wysiwyg that makes multipage forms. Suggestions?

Cheers,

Blue

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Well all you're doing there is sending an e-mail with the contents of a form right?

You could use multiple forms setup across different pages with each of these sending an e-mail. This would be the simplest way of doing things, if you need all the data to be collated then sent together at the end of the process then you need to learn PHP or some other server-side scripting language, things start to get a bit complicated here so it much depends on how much you're willing to learn Smiling

a Padded Cell our articles site!

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

You can always have hidden form fields. In other words, if page one had a text field named EMAIL, and that was it, the next page would have a hidden field also named EMAIL, and it would read in the value from the submitted form and make it the value on the new field.

The biggest downside is you would accumulate hidden fields, and could end up having a lot of fields that are increasing download time of the page, but are not actually being shown.

Busy's picture

He has: 6,151 posts

Joined: May 2001

Just to add if you have a Javascript based email form with hidden fields (like a lot do), email harvestors will get your email address as it's there in plain view - well if you look at view source

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Right. So never store an email address statically in a hidden field. Of course, if it's from a text field on a previous page's form (which is what I was talking about), then there will be no email address in there when a harvester looks at it.

He has: 176 posts

Joined: Oct 1999

A point I'd like to add is always make sure you validate any content entered into forms. You don't want to be the subject of an email injection attack or an sql injection attack either. Validate, validate, validate Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.