| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:32:11 2008 ] | [ phpautotest 1.0.3 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 require 'includes/phpautotest_config.php'; 3 require 'includes/phpautotest_functions.php'; 4 5 if($_POST['targetpage'] && $_POST['description']) 6 { 7 $start_timestamp = time(); 8 9 // Create a new case record and store its id in a session variable 10 $QUERY = <<<END 11 12 INSERT INTO 13 `$phpautotest_table_cases` 14 (`case_id`, `description`, `start_timestamp`) 15 VALUES 16 ('?', '$_POST[description]', '$start_timestamp') 17 END; 18 19 phpautotest_send_query($QUERY); 20 21 $case_id = mysql_insert_id(); 22 23 // Set case_id in record.php and redirect this page 24 echo 25 " 26 <html> 27 <head> 28 <script language = 'Javascript'> 29 top.case_id = $case_id; 30 document.location = '$_POST[targetpage]'; 31 </script> 32 </head> 33 <body> 34 <a href = '$_POST[targetpage]'>Please click here</a> 35 </body> 36 </html> 37 "; 38 die(); 39 } 40 41 $phpautotest_smarty->display_once('header.htm'); 42 $phpautotest_smarty->display_once('start.htm'); 43 $phpautotest_smarty->display_once('footer.htm'); 44 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |