Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: passing CGI form parameters via HTML email

by mbadolato (Hermit)
on Jun 22, 2006 at 02:39 UTC ( [id://556814]=note: print w/replies, xml ) Need Help??


in reply to Re^2: passing CGI form parameters via HTML email
in thread passing CGI form parameters via HTML email

Well, I just tried this out. I sent the email from my work server, and picked it up at home, via Thunderbird.

The URL pointed to your script, which I copied to a local machine here.

I used the subject "Test" and the comment "Foo"

when I clicked the submit button in the email I got:

$subject is Test $content is

The URL was correct: http://192.168.1.102/test/view_sent_form_data.cgi?subject=Test&content=Foo

Further analysis shows that the form variable in your scripts is set to a different name than what you're trying to print. IE, you do this in your script that generates the email:

Comments: <textarea name="content" rows="2" cols="15"></textarea>

and this in your script that prints:

my $comments = param("comments");

So, I think you have a combination of things. 1) Your CGI parameter is wrong, and 2) AOL may not be letting you submit properly (or may be munging your HTML as was suggested above)

Replies are listed 'Best First'.
Re^4: passing CGI form parameters via HTML email
by gmacfadden (Sexton) on Jun 22, 2006 at 13:39 UTC
    After correcting the CGI parm, everything worked properly on a different email client (AOL email not being very friendly). Thanks for the great help.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://556814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found