For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > September 2005 > html file with form and onSubmit="return check_form(this)"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author html file with form and onSubmit="return check_form(this)"
Edgardo Lust

2005-09-23, 6:55 pm

Hi.

I have a html file (created with Dreamweaver) with one form and submit
button with

<form method="POST" action="/cgi-bin/contact.pl" onSubmit="return
check_form(this)">
<input type="hidden" name="success"
value="/contacto/message.htm">
<input type="hidden" name="required-to"
value="user@example.com">
<input type="hidden" name="subject" value="-- NEW
CONTACT --">

I need my perl script to return a valid value then the user can see
message.htm page


How can I do?

Thanks

Edgardo

Wiggins d'Anconia

2005-09-23, 6:55 pm

Edgardo Lust wrote:
> Hi.
>
> I have a html file (created with Dreamweaver) with one form and submit
> button with
>
> <form method="POST" action="/cgi-bin/contact.pl" onSubmit="return
> check_form(this)">
> <input type="hidden" name="success"
> value="/contacto/message.htm">
> <input type="hidden" name="required-to"
> value="user@example.com">
> <input type="hidden" name="subject" value="-- NEW
> CONTACT --">
>
> I need my perl script to return a valid value then the user can see
> message.htm page
>
>
> How can I do?
>
> Thanks
>
> Edgardo
>
>


What do you mean by return a valid value? You can either redirect to
message.htm or read it in and return the contents.

As a side note the above is basically an open relay, depending on your
other form fields a specially crafted message can probably be used to
send an e-mail to anyone.

http://danconia.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com