2012-02-24 73 views
0

我只需要一個現實檢查。該頁面立即重定向到HTTP_HOST,無需下載數據或處理表單。這是一次工作。我打破了一些東西,但我對此一竅不通。 我點擊頁面查詢有1個值對,如下所示:http://Nitrofill.biz/tr/Nitrofill_Presentation?num=EV4ghF8p3表單沒有被處理,頁面立即重定向

有人能幫我發現問題嗎?

<?php session_start(); 
require_once('Connect.php') ; 
?> 

<!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> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Nitrofill Document</title> 

<?php 

$sn=$_GET['num']; 
echo $sn; 

mysql_connect($hostname,$username, $password) OR die('Unable to connect to database! Please try again later.'); 
mysql_select_db($dbname); 
$selectSQL = "select * from `Presentations` where `serialnum` ='" . $sn ."'" ; 

$result = mysql_query($selectSQL) or die(mysql_error()); 
$row = mysql_fetch_array($result, MYSQL_BOTH); 
$thedoc = urldecode($row['docurl']); 
$therecip=urldecode($row['recipient']); 
$thetracker=urldecode($row['tracker']); 
$lastacc=urldecode($row['last_accessed']); 

?> 
</head> 
<body> 

<form id="notice" action="http://m3sglobal.com/gdform.php" method="post"> 
<input name="subject" value="<?php echo $therecip . " has viewed the document you sent them.";?> " /> 
<input type="hidden" name="redirect" value="<?php echo $thedoc ; ?>"/> 
<label>Email:</label><input type="text" name="email" value="<?php echo $thetracker ; ?>"/> 
<label>Comments:</label><textarea name="comments" cols="40" rows="5"> 
Document Viewed:<?php echo $thedoc ; ?> 

When Accessed:<?php echo $lastacc ; ?> 
</textarea> 
<input type="submit" name="submit"/> 
</form> 
</body> 

</html> 

回答

1

您錯過了.php您已經發布的鏈接。它需要

http://nitrofill.biz/tr/Nitrofill_Presentation.php?num=EV4ghF8p3 
+0

THANKYOU!現在,我看不到那是奇怪的嗎?這麼簡單明顯,但我已經掛了好幾個小時了! – 2012-02-24 02:37:25