DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Reply
 
Thread Tools Display Modes
Old 04-11-2006, 11:12 AM   #1
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Learning to do Forms

If someone is learning to do forms, but doesn't publish the HTML, is there an easy way to test the form and its output? For example, can the information entered go into a sequential file?

Last edited by dthomsen8; 04-11-2006 at 11:13 AM. Reason: typo
dthomsen8 is offline   Reply With Quote
Old 04-11-2006, 01:30 PM   #2
gary
Member
 
Join Date: Dec 2004
Location: In the heart of Lake Minnetonka
Posts: 337
Default

You can view the form just by browsing the HTML file, but to test clicking the "submit" button (or associated javascript) you need a webserver to accept the GET/POST request. Furthermore, note that the browser will *expect* a response from the submit.
gary is offline   Reply With Quote
Old 04-12-2006, 08:25 AM   #3
Daudio
Member
 
Daudio's Avatar
 
Join Date: Aug 2005
Location: Royal Oak, Detroit suburb
Posts: 174
Default

Quote:
is there an easy way to test the form and its output?
I would think that using the 'formmail' cgi program would be an easy way to see the output of your form. Perhaps you could modify the code to echo the names of the variables as well as their values to make it more of a diagnostic tool.

But to do anymore then use an existing program, you will have to do some coding in something like PHP, PERL, or whatever...

It's likely that there is a script out 'there' that will fit your needs. Happy searching.

   
__________________
Dave

DaveAyers.com, Brass Backshop Forum
Daudio is offline   Reply With Quote
Old 04-12-2006, 09:25 AM   #4
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Solution

Quote:
Originally Posted by Daudio
I would think that using the 'formmail' cgi program would be an easy way to see the output of your form. Perhaps you could modify the code to echo the names of the variables as well as their values to make it more of a diagnostic tool.

But to do anymore then use an existing program, you will have to do some coding in something like PHP, PERL, or whatever...

It's likely that there is a script out 'there' that will fit your needs. Happy searching.
Try this URL:

http://www.19121.com/cis230.htm

You will see how entering the data and doing the submit provides immediate results to the user. The results are transferred with parameters in the URL, so the HTML could be executed with the browser in Dreamweaver, instead of through the published web site.

Notice how the absolute address with HTTP is in the code, to send the results through my web site. This technique depends on using the "GET" method, but it has the advantage of not requiring publishing the student's work. The students don't know any PHP or PERL, so the objective was to find a way to provide results which show that their HTML is correct, generated with Dreamweaver MX 2004, without publishing and without coding in another language.
dthomsen8 is offline   Reply With Quote
Old 04-13-2006, 08:27 AM   #5
donmcc
Member
 
Join Date: Feb 2005
Location: Sarnia, Canada
Posts: 1,122
Default

Well, if you have a server on your machine, you can view the page using the localhost: address, and then you will be able to deal with your form variables in the program of your choice.

Also, Javascript can read form variables that are sent from one page to another. Sorry, but I don't have any site references.
donmcc is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning from mistakes LoisWakeman The Corner Pub 6 04-03-2007 01:17 AM
Learning CSS RJ Emery Web Site Building & Maintenance 10 02-04-2007 06:45 AM
CSS problem - learning experience Daudio Web Design 2 07-21-2006 06:46 AM
<label> for forms dacoyle Web Design 21 05-03-2006 10:59 AM
Learning MS Word dthomsen8 General Publishing Topics 3 12-27-2005 05:04 PM


All times are GMT -8. The time now is 11:58 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Contents copyright 2004–2019 Desktop Publishing Forum and its members.