Forum Moderators: open

Message Too Old, No Replies

cgi and dreamweaver

will not work.....Please help!

         

estebones

4:13 am on Jul 25, 2003 (gmt 0)

10+ Year Member



I am using a form on my website t allow the user to send me email, I laid out the form in Dreamweaver then switched over to the code view to implement the cgi code that is needed:
<form action="cgi-bin/FormMail.pl" method="POST">
<input type="hidden" name="recipient" value="myname@mydomain.com">
<input="hidden" name="redirect" value="www.WebmasterWorldebsite.com/thankyou.html">
<input type="text" name="field1" value="">
<input type="text" name="filed2" value="">
<input type="submit" name="submit" value="submit">
<input type="reset" name="reset" value="reset">

but i am still getting some sort of an "SBOX"error?
my host leaves a lot to whish for regarding their customer service i have had a ticjket in for about a month and no replies....
so here are my questions:

1. do I need to use a different way to let dreamweaver know that I am using a server side script,meanning is it ok for me top code the form by hand rather than doing this on the design view and let dreamweaver do its thing?
2. how do I change the chmod permissions on the server?and how can I do this with DWMX?
3. I made a folder and caled CGi bin will this suffice or is there anything else i need?is is necessary to use my hosts cgi folder?
sorry of I seem ignorant but I have come to the realization that at school they tech you only the basics and let you learn all the real-world stuff on your own....what a waste of $32000 if you ask me!
--este

ncw164x

9:57 am on Jul 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this

<form method="post" action="cgi-bin/FormMail.pl">
<input type=text name=field1>
<input type=text name=field2>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset">
<input type="hidden" name="subject" value="thank you">
<input type="hidden" name="recipient" value="myname@mydomain.com">
<input type="hidden" name="redirect" value="http://www.mydomain.com/thanks.htm">
</form>

for security reasons you need to change the name of formmail to some other name, this is to stop anyone else from using your formail.pl

2. how do I change the chmod permissions on the server?
using an ftp client upload your file, right click on the file, pop up box appears and choose chmod

3. I made a folder and caled CGi bin
You can't just make a directory called cgi-bin because of security reasons for you scripts