"Fossies" - the Fresh Open Source Software Archive 
Member "faqadmin/faq/admin/faqsend.php" (7 Oct 2003, 901 Bytes) of package /linux/www/old/faqadmin-current.tgz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "faqsend.php" see the
Fossies "Dox" file reference documentation.
1 <html>
2 <HEAD>
3 <meta HTTP-EQUIV="REFRESH" CONTENT="2;URL=x.php?fid=<? echo $faq_fid ?>">
4 <title>Your Question has been Saved ! </title>
5 </HEAD>
6 <body bgcolor="ffffff">
7
8 <?
9
10 // session check
11 session_start();
12 if (!session_is_registered("SESSION_NAME"))
13 {
14 // if session check fails, invoke error handler
15 header("Location: login.php");
16 exit();
17 }
18 ?>
19
20
21 <?php
22
23 include ("connect.php");
24
25 if (ereg(".", $faq_memo) == 1)
26 {
27
28 $sql = "insert into faq_dat(faq_dat, faq_user, faq_memo, faq_user_email, faq_date, email, faq_fid)
29 values ('$faq_dat', '$faq_user', '$faq_memo', '$faq_user_email', '$faq_date', '$email', '$faq_fid')";
30 $result = mysql_query($sql);
31
32
33 echo "Your FAQ Has Been Saved !<BR> Thank You for using Faq Administrator<BR>\n";
34
35 }
36
37
38
39 else
40 {
41 print ("<B>Error:</B> A Subject Title is required. Save was aborted!!");
42 $verify = "bad";
43
44 }
45 #include "main.php"
46 ?>
47 </body>
48 </html>