嘿,伙计们。。。。。我有一个自己制作的页面模板&;我也在贴到上面去处理表格。。。。最初它工作得很好,但我移动了一些代码&;现在由于某种原因它不起作用了。它只是因为某种原因重定向到404页??
不确定这是否重要,但这是模板文件中的代码。。
/*
Template Name: Detailed Quote
*/
// Make paths up
include(ABSPATH . \'/includes/dq-config.php\');
include(ABSPATH . \'/includes/functions.php\');
include(ABSPATH . \'/includes/classes/class.detailedQuote.php\');
// Instantiate new detailedQuote class
$quote = new detailedQuote();
if (isset($_POST[\'process\'])) {
// Prepare post data
$data = $quote->prepare_quote_data($_POST);
try {
// Error check submission
$quote->error_check_quote($data);
} catch (Exception $e) {
// Display output with error message
$quote->displayOutput($e->getMessage());
return false;
}
} else {
// Display page output
$quote->displayOutput();
}
非常感谢!