Hi,
I have a simple script to read the inputs of a simple form.
I just wanted to see what is read by this script when the form is submitted.
Upon submission of the form, the script print the following :
name=simon+garfunkal&email=asdfdsasdf.asdf.com&age=12&favorite_color=pink
Usually a script to read forms will have this line included to change the hex
values back into ASCII, $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",
hex($1))/eg;
So why cant I see any hex values when the form below was submitted?
Thanks
##### my form ###############
<html><head><title>Post.html</title></head>
<body>
<form action="post.cgi" method="POST">
<pre>
Your Name: <input type="text" name="name">
Email Address: <input type="text" name="email">
Age: <input type="text" name="age">
Favorite Color: <input type="text" name="favorite_color">
</pre>
<input type="submit" value="Send">
<input type="reset" value="Clear Form">
</form>
</body>
</html>
###### simple script ################
#!/usr/bin/perl
print "Content-type:text/html\n\n";
read(STDIN, $anything, $ENV{'CONTENT_LENGTH'});
print "$anything\n";