This sets everything for using a form-mail cgi script. The submitted
authorDeryck Hodge <deryck@samba.org>
Sun, 8 Aug 2004 03:41:41 +0000 (03:41 +0000)
committerDeryck Hodge <deryck@samba.org>
Sun, 8 Aug 2004 03:41:41 +0000 (03:41 +0000)
form will return a "success" page.

I have the script, which is a verion of the much used "Matt's Script
Archive" FormMail.cgi, with some added security features.
Jerry, et al., can check out the quality/secureness of the
script when we move to the new design tomorrow, and if approved,
we can add it to the cgi-bin then.

--deryck

git-svn-id: file:///home/svn/samba-web/trunk@217 44aeb9d7-1cd8-0310-b257-a505e0beeac2

news/style/news.css
news/submit.html
news/success.html [new file with mode: 0755]

index aae57de72d16c7310f82f7de0bce79fd5eea2e01..943bdc89e022464a110f49dc7563970e4d7e788a 100644 (file)
@@ -100,3 +100,8 @@ input, textarea {
        color:#2B5C9F;
        padding-top:20px;
 }
+.success {
+       width:60%;
+       padding-top:15px;
+       margin-left:17%;
+}
\ No newline at end of file
index 917d88ce8edd3400a9b660bc5b9b150bbb85d5f6..52245ac81c4230eedb40ba465725d089105fdb3d 100755 (executable)
@@ -69,7 +69,9 @@ body {
 
        <h2>Submit A Story</h2>
        
-       <form method="post" action="mailto:deryck@samba.org">
+       <form method="post" action="/cgi-bin/FormMail.cgi">
+       <input type="hidden" name="subject" value="Submitted News Story" />
+       <input type="hidden" name="redirect" value="/news/success.html" />
        
        <h4>Your Name</h4>
        <input type="text" name="your_name" size="30" value="" />
@@ -97,6 +99,7 @@ value="email" />email <input type="checkbox" name="publish" value="homepage"
        <textarea wrap="physical" name="comments" rows="5" cols="50"></textarea>
        
        <input type="submit" name="submit" value="Submit Story" />
+       <input type="reset" name="reset" value="Reset Form" />
        
        </form>
        
diff --git a/news/success.html b/news/success.html
new file mode 100755 (executable)
index 0000000..a8bd895
--- /dev/null
@@ -0,0 +1,84 @@
+<!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" xml:lang="en" lang="en">
+
+<head>
+
+<link rel="stylesheet" href="http://tmp.samba.org/samba/style/common.css" type="text/css"
+media="all" />
+<link rel="stylesheet" href="/samba/news/style/news.css" type="text/css" media="all"
+/>
+<link rel="shortcut icon" href="/samba/news/images/favicon.ico" />
+
+<!--[if gte IE 5.5]>
+        <style type="text/css">
+        .news_logo_hack {
+        filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/news/images/news_logo.png',sizingMethod='scale');
+        }
+        </style>
+<![endif]-->
+
+<!--[if lte IE 5]>
+        <style type="text/css">
+        .news_logo_hack {
+        background-image:url(/news/images/news_logo.gif);
+        background-position:center;
+        background-repeat:no-repeat;
+        }
+        </style>
+<![endif]-->
+
+<style type="text/css">
+body {
+       background-color:#FFF;
+
+}
+</style>
+
+<title>Your story has been submitted</title>
+
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta http-equiv="Content-Language" content="en-us" />
+<meta name="keywords" content="Samba SMB CIFS" />
+<meta name="description" content="Home of Samba, the SMB file server" />
+<meta name="robots" content="noindex" />
+
+</head>
+
+<body>
+
+<div class="newsbar"></div>
+
+<div id="news_logo">
+  <div class="news_logo_hack">
+    <a href="/samba/news/"><img src="/samba/news/images/linkpad.gif" alt="news.samba.org"/></a>
+  </div>
+</div>
+
+<div id="links">
+    <div class="about">
+        <ul>
+        <li><a href="/samba/news/about.html">About news.samba.org</a></li>
+        <li><a href="/samba/news/submit.html">Submit A Story</a></li>
+        <li><a href="http://samba.org/">Samba-Web Home</a></li>
+        </ul>
+    </div>
+</div>
+
+
+<div id="page_wide">
+    <div class="news_wide">
+
+       <div class="success">
+           <h3>Your Story Has Been Submitted</h3>
+
+           <p>Your story will be reviewed as quickly as possible.  Once a decision has been made regarding posting your story, you will be notified by email.  Thanks for your submission.</p>
+           
+           <p>Return to <a href="http://news.samba.org/">news.samba.org</a></p>
+       </div>
+               
+    </div>  <!-- Closes the 'news_wide' div -->
+</div>  <!-- Closes the 'page_wide' div -->
+
+</body>
+</html>