HighDots Forums  

Form Debugging?

alt.html alt.html


Discuss Form Debugging? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Super Steve
 
Posts: n/a

Default Form Debugging? - 07-22-2008 , 01:32 AM






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?

Reply With Quote
  #2  
Old   
Nik Coughlin
 
Posts: n/a

Default Re: Form Debugging? - 07-22-2008 , 01:50 AM






"Super Steve" <BitBandit (AT) gmail (DOT) com> wrote

Quote:
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?
print_r( $_POST );



Reply With Quote
  #3  
Old   
nice.guy.nige
 
Posts: n/a

Default Re: Form Debugging? - 07-22-2008 , 01:24 PM



While the city slept, Nik Coughlin feverishly typed:

Quote:
print_r( $_POST );
Ahh, the wonder of print_r() :-) And to make the output a little more
readable;

echo "<pre>\n";
print_r($_POST);
echo "</pre>\n";

Cheers,
Nige

--
Nigel Moss | http://www.nigenet.org.uk
Email not valid. nigel (AT) dog (DOT) nigenet.org.uk - take the dog out!
"You're mother ate my dog!", "Not all of him..."




Reply With Quote
  #4  
Old   
Super Steve
 
Posts: n/a

Default Re: Form Debugging? - 07-22-2008 , 05:32 PM



On Jul 22, 5:50*pm, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote:

Quote:
print_r( $_POST );
Thanks for your help but I should maybe have included a bit more info
on what I'm trying to achieve.

I want something that will show me the raw HTTP headers and data that
is flowing into and out of my script.

The Cg-Eye utility that I mentioned in my original post is intended to
do this, but for some reason it's not working at the moment. If you
have a look at Cg-Eye you'll see what I mean.


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.