From: Dave C. <da...@da...> - 2002-12-07 18:37:38
|
Here's a relatively simple (I think) project for someone to take on. Basically, it looks like the error pages in FormMail don't take much notice of the stylesheet. If would be nice if they didn't have so many hard-coded value. Does anyone fancy taking a look and seeing if you can fixed this? These fixes will probably need to be applied to other scripts too. Dave... ----- Forwarded message from Rob Clifford <in...@ho...> ----- To: nms...@li... From: in...@ho... (Rob Clifford) Subject: [Nms-cgi-support] nms-FormMail.pl Date: Fri, 06 Dec 2002 04:53:28 -0800 Below is the result of your feedback form. It was submitted by Rob Clifford (in...@ho...) on Friday, December 06, 2002 at 12:53:21 --------------------------------------------------------------------------- description: #I like the new script, great stuff, its working BUT the stylesheet config doesnt work; # ############################################################## BEGIN { $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 5; $mailprog = '/usr/sbin/sendmail -oi -t'; @referers = qw(www.brighton-apartments.com www.host.uk.net); @allow_mail_to = qw(we...@br... btn...@ho...); @recipients = (); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT); $locale = ''; $date_fmt = '%A, %B %d, %Y at %H:%M:%S'; $style = '../stylesheets/btnApaStyle.css'; $send_confirmation_mail = 0; $confirmation_text = <<'END_OF_CONFIRMATION'; ############################################################# #My best guess is it looks to me like the in-line formatting in the script is over riding the stylsheet attributes. #Here is the code from the form the script generates; ############################################################# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Error: Blank Fields</title> <link rel="stylesheet" type="text/css" href="../stylesheets/btnApaStyle.css" /> <style type="text/css"> <!-- body { background-color: #FFFFFF; color: #000000; } p.c2 { font-size: 80%; text-align: center; } th.c1 { font-size: 143%; } p.c3 {font-size: 80%; text-align: center} div.c2 {margin-left: 2em} --> </style> </head> <body> <table border="0" width="600" bgcolor="#9C9C9C" align="center" summary=""> <tr> <th class="c1">Error: Blank Fields</th> </tr> </table> <table border="0" width="600" bgcolor="#CFCFCF"> <tr> <td> <p> The following fields were left blank in your submission form: </p> <div class="c2"> <ul> <li>Last_Name</li> <li>Address1</li> <li>TownCity</li> <li>CountyState</li> <li>PostcodeZip</li> <li>Country</li> <li>Telephone</li> <li>email</li> </ul> </div> <p> These fields must be filled in before you can successfully submit the form. </p> <p> Please use your back button to return to the form and try again. </p> <hr size="1" /> <p class="c3"> <a href="http://www.scriptarchive.com/nms.html">nms FormMail</a> © 2001 London Perl Mongers<br> Written as drop-in replacement for <a href="http://www.scriptarchive.com/formmail.html">FormMail</a> at <a href="http://www.scriptarchive.com/">Matt's Script Archive</a>. </p> </td> </tr> </table> </body> </html> ############################################### # #Does this mean I have to go into the FormMail.pl script & edit out the formatting for my style sheet to work? #I tried a different approach by creating my own ERROR page & inserted #the '$missing_field_list' object between <ul> tags. Sadly this didnt work #either as it just displays '$missing_field_list' as text. Here is the code for my ERROR page; ################################ <html> <head> <title>Error: Blank Fields</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="../stylesheets/btnApaStyle.css"> </head> <body bgcolor="#FFFFCC" text="#003399"> <center> </center> <table width="700" border="0" cellpadding="10" align="center"> <tr> <td><a href="content.html"><img src="../images/logosml.gif" width="140" height="94" border="0"></a><img src="../images/supapasm.gif" width="123" height="46"></td> </tr> <tr class="headings3"> <td> <p class="headings"><span class="bodyTextBold">OOPS! <font size=+2>.............Error: Blank Fields</font></span></p> <p class="bodyText">The following fields were left blank in your submission form:</p> <p> <ul> <span class="bodyText"> $missing_field_list </span> </ul> <span class="bodyText"><br> These fields must be filled in before you can successfully submit the form. </span> <p><span class="bodyText"> Please use your browser's back button to return to the form and try again. </span> <center> </center> <p> </p> </td> </tr> </table> </body> </html> ################################################# #I would love to make this script work seamlessly with the design of the site & form. I got very exicited when it worked & did what it was supposed to. Any chance you can help out here? #Best regards, Rob Clifford --------------------------------------------------------------------------- ----- End forwarded message ----- -- Two slightly distorted guitars |