I am posting both my formmail.pl and the html for my comments page, this is the exact code for both.
I have the formmail in the cgi-bin prior to my shopping cart, this works fine on my main site but so far whenever I try to use the form on the new site the browser says the link appears to be broken, I get no server error messages.
BEGIN { $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 1; $mailprog = '/usr/sbin/sendmail -oi -t'; $postmaster = 'referral@stonebeads.com'; @referers = qw(72.167.232.53 stonebeads.com localhost); @allow_mail_to = qw(stonebeads.com slocalhost); @recipients = (); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USE +R_AGENT); $locale = ''; $charset = 'iso-8859-1'; $date_fmt = '%A, %B %d, %Y at %H:%M:%S'; $style = '/css/nms.css'; $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $send_confirmation_mail = 0; $confirmation_text = <<'END_OF_CONFIRMATION'; From: you@your.com Subject: form submission Thank you for your form submission. END_OF_CONFIRMATION # You may need to uncomment the line below and adjust the path. # use lib './lib'; # USER CUSTOMISATION SECTION # -------------------------- # Place any custom code here # USER CUSTOMISATION << END >>
<table width=40% cellpadding=10 border=1><tr><td> <!-begin online question comment form-> <center><h4><font color="#FF0000">PLEASE FILL OUT AND SUBMIT</font></h +4> <form method="post" action="/cgi-bin/formmail.pl"> <input type=hidden name="subject" value="Check form order"> <input type=hidden name="redirect"value="http://www.stonebeads.com"> + <input type=hidden name="recipient" value="daniel@stonebeads.com"> <input type=hidden name="print_blank_fields" value="1"> <input type=hidden name="env_report" value="http_user_agent,remote_add +r"> <br> <h5> <br>Your Email address: <input type="text" name +="email address" size="35" maxlength="55" value> <br><br> YourName: & +nbsp; <input type="tex +t" name="Your Name" size="35" maxlength="45" value> <br><br> Telephone Number: <input type="text" name +=" address" size="35" maxlength="55" value> <br><br> <textarea name="letter" rows="5" cols="50">Comments </textarea> <br><br><br> <center><input type="submit" value="Submit My Question or Comment"> <!-end online question comment form-> </center></td></tr></table>
In reply to Re^4: TKI cart
by lopacki
in thread TKI cart
by lopacki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |