dreamweaver training london - forms
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver training london - Forms

dreamweaver training london - Forms

The UK's most regular instructor-led training courses.
Training information: dreamweaver training london · Dreamweaver training · Adobe dreamweaver training

resolvedResolved · Low Priority · Version Standard

Forms

Julie has attended:
Dreamweaver 8 Introduction course

by - delegate Julie [1 post] (2007 Jul 2 Mon, 14:06) replyReply

How do you get a form to post, and then reload the same page?

Dreamweaver 8 Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
8 2009 Jan 20 Tue Bloomsbury 8 book now £175 £225
8 2009 Apr 24 Fri Bloomsbury 8 book now £175 £225
8 2009 Jul 15 Wed Bloomsbury 8 book now £175 £225
8 2009 Aug 28 Fri Bloomsbury 8 book now £175 £225
8 2009 Oct 6 Tue Bloomsbury 8 book now £175 £225

RE: Forms

by - trainer David gold contributer[428 posts] (2007 Jul 3 Tue, 12:49) replyReply

Hi Julie

I trust that you found your Dreamweaver 8 course helpful.

To get your form to post and then reload to the same page, all you need to do is in the html for declaring the form you need to have it as follows:
<form name="yourname" action="thesamepage.html"
method="post">


Hope this helps

David

RE: Forms

by - trainer Rich platinum contributer[744 posts] (2007 Jul 3 Tue, 12:56) replyReply

Julie,

First of all, understand that usually a server-side file processes the form. This is usually written in a CGI (common gateway interface) language such as ASP, .NET, PHP, PERL etc.

So here are two ways to achieve your desired result:

1) Have the form in a document that can contain CGI code. eg. /form.asp. Then organise that form to be structured like this pseudo code:
a) if form has been submitted, proccess form
b) display form, with the action being the same filename (eg. form.asp)

This way, each time the document with the form is loaded, it will check if the form has been submitted (eg. a user has pressed 'submit' button). If they have, process the form (eg. send e-mail, add to database).

The form is always displayed (step b), regardless.

2) Have a separate processing file - still needs to be CGI. But after the processing, automatically redirect the user to the web page with the form on it. Pseudo code:
a) user arrives at /form.html. Form is always shown, and action is a separate processing file, eg. /process-form.asp
b) user presses 'submit' button on form, and the form values get sent to /process-form.asp
c) /process-form.asp processes the data (eg. sends e-mail, adds to database etc.)
d) the last thing /process-form.asp does is redirect the browser back to /form.html (usually using 'header' method).

In my opinion, the first method is best, as you can control everything in the one file, and can easily mark errors of required fields.

This may all sound a bit technical, but it's the only way to explain it, as forms are quite technical! If this is way out of your depth, may I respectfully recommend hiring a web developer, or contracting out to a web development company.

Hope this helps.

Regards, Rich


Related articles

· Macromedia Dreamweaver Vs Microsoft FrontPage
· How Dreamweaver Courses for Your Marketing Staff Can Cut IT Payroll Expenses
· Dreamweaver: Business Benefits of Web Design Skills
· Six Reasons to Outsource Dream Weaver Training
· The Importance of a Professionally Designed Website

Dreamweaver tip:

Toggle panels on and off

Press the F4 key to toggle all the panels in Dreamweaver on or off. This gives you more editing and programming screen space.

View all Dreamweaver hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz