Click here to get back home

Debugging Forms

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Debugging Forms Super Steve 07-22-2008
Get Chitika Premium
Posted by Super Steve on July 22, 2008, 1:30 am
Please log in for more thread options
I'm trying to debug a form handler (written in PHP) and in the past
I've used a tool like cg-eye at http://www.htmlhelp.com/tools/cg-eye/cgeye.cgi
to test things like this.

However now cg-eye doesn't seem to be sending form data to my form
processing script.

I've looked around to see if there are any other online tools that let
you specify a URL to submit a request to, along with a list of field
name / value pairs, and that then shows the result, but I can't find
anything! There are plenty of HTTP header viewers, but they don't let
you submit form data with the request.

I've also tried looking for a program that I could run locally on my
computer but couldn't find anything suitable (plenty of sniffers but
nothing that would submit a request).

Does anyone know of anything that I could use for this kind of thing?

Posted by Steve Swift on July 22, 2008, 1:22 pm
Please log in for more thread options
Super Steve wrote:
> I've looked around to see if there are any other online tools that let
> you specify a URL to submit a request to, along with a list of field
> name / value pairs, and that then shows the result, but I can't find
> anything! There are plenty of HTTP header viewers, but they don't let
> you submit form data with the request.

While I don't recommend it for production work, if you modify your form
so the ACTION is http://www.swiftys.org.uk/cgi-bin/test then you will
see an analysis of all the form data submitted with your request.

Of course, doing this you have to trust that my server won't record the
data that you submit, and use it for nefarious purposes. As it happens,
it doesn't record anything (I've got better things to do with my time)
but then he would say that, wouldn't he?

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Posted by Super Steve on July 22, 2008, 5:26 pm
Please log in for more thread options
> Super Steve wrote:
> > I've looked around to see if there are any other online tools that let
> > you specify a URL to submit a request to, along with a list of field
> > name / value pairs, and that then shows the result, but I can't find
> > anything! =A0There are plenty of HTTP header viewers, but they don't le=
t
> > you submit form data with the request.
>
> While I don't recommend it for production work, if you modify your form
> so the ACTION ishttp://www.swiftys.org.uk/cgi-bin/testthen you will
> see an analysis of all the form data submitted with your request.
>
> Of course, doing this you have to trust that my server won't record the
> data that you submit, and use it for nefarious purposes. As it happens,
> it doesn't record anything (I've got better things to do with my time)
> but then he would say that, wouldn't he?
>
> --
> Steve Swifthttp://www.swiftys.org.uk/swifty.htmlhttp://www.ringers.org.uk

I tried submitting to your script and received the following back:

<HEAD><BODY BGCOLOR=3D#FFFFD0><TITLE>CGI Test</TITLE></HEAD>
<FONT SIZE=3D+3><U>CGI/1.1 test script report:</U></FONT><BR>
</TABLE></TABLE></TABLE></TABLE></TABLE></TABLE></TABLE></TABLE></
TABLE></TABLE>
<H2>Syntax Error</H2>
<H3>Routine not found</H3>
21 *-* If method =3D 'POST' then call PostCheck

Looks like there's something wrong with your script?

Posted by Steve Swift on July 24, 2008, 6:44 am
Please log in for more thread options
Super Steve wrote:
> <H3>Routine not found</H3>
> 21 *-* If method = 'POST' then call PostCheck
>
> Looks like there's something wrong with your script?

Well, you could be the first person to call that routine using "POST"
for quite a while. Now fixed. Thanks for the heads-up!

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Posted by Pierre Goiffon on July 28, 2008, 11:54 am
Please log in for more thread options
Super Steve wrote:
> I've looked around to see if there are any other online tools that let
> you specify a URL to submit a request to, along with a list of field
> name / value pairs, and that then shows the result, but I can't find
> anything! There are plenty of HTTP header viewers, but they don't let
> you submit form data with the request.

Not sure I have understood right your needs ? Do you want to show
exactly what is submitted to the server for an existing form ? If so,
why don't use one of the amazing Firefox extension like Live Http
Headers, Firebug, Web developer toolbar (and there should be more who
presents the data submitted)

Similar ThreadsPosted
Advice re debugging techniques April 17, 2008, 11:16 pm
Good browser for
debugging?
January 19, 2005, 2:28 pm
Forms - howto use return for submitting in Forms? April 6, 2005, 4:08 pm
Help with forms. January 29, 2006, 10:37 pm
FOrms July 10, 2008, 10:05 am
Nested forms August 20, 2004, 9:53 am
Forms and encoding August 21, 2004, 7:35 pm
autofill web forms January 24, 2005, 12:53 pm
Use of prefilled forms February 8, 2005, 8:30 pm
WAI Accessibility and Forms May 4, 2005, 6:33 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap