请帮助 - 非常奇怪的问题 [英] PLEASE HELP - Very odd problem
问题描述
我是PHP的新手,我有一个非常奇怪的问题。可以一些PHP
大师请帮忙。
我将一些变量从一个页面传递到下一页,并在
起始页,我有:
< div id =" navigation" align =" center">
< form NAME =" addnewpoetpoemform" METHOD =" GET"
ACTION =" addpoetpoem.php">
< table align =" center">
< tr>
< td width =" 20%"> Poet Name:< / td>
< td width =" 80 %">< input TYPE =" text" NAME =" newpoet" SIZE =" 30"
MAXLENGTH =" 30">< / td>
< / tr>
< tr>
< td width =" 20%">诗名:< / td>
< td width =" 80%" >< input TYPE =" text" NAME =" newpoem" SIZE =" 30"
MAXLENGTH =" 30"< $
< / tr>
< tr>
< td align =" center">< input TYPE =" SUBMIT" VALUE =添加诗人和
诗歌>< / td>
< / tr>
< / table>
< / form>
当接收页面打开时,我可以在URL文本框中看到
值已被传入。
但是,我无法回应这些值。如果我有:
< table>
< tr>
< td>
< ?php
// import_request_variables(gP,"");
$ recdpoet = $ _ GET [''newpoet'']
$ recdpoem = $ _ GET [''newpoem''];
if(isset($ recdpoet)and strlen($ recdpoet)0)
echo $ recdpoet;
?>
< / td>
< / tr>
页面打开完全空白。什么可能是
出错了?我已经尝试取消注释上面的行,但它没有
工作。
任何帮助或建议将不胜感激。
I am new to PHP and I am having a very odd problem. Could some PHP
guru please help.
I am passing some variables from one page to the next, and in the
starting page, I have:
<div id="navigation" align="center">
<form NAME="addnewpoetpoemform" METHOD="GET"
ACTION="addpoetpoem.php">
<table align="center">
<tr>
<td width="20%">Poet Name:</td>
<td width="80%"><input TYPE="text" NAME="newpoet" SIZE="30"
MAXLENGTH="30"></td>
</tr>
<tr>
<td width="20%">Poem Name:</td>
<td width="80%"><input TYPE="text" NAME="newpoem" SIZE="30"
MAXLENGTH="30"><$
</tr>
<tr>
<td align="center"><input TYPE="SUBMIT" VALUE="Add Poet and
Poem"></td>
</tr>
</table>
</form>
When the receiving page opens I can see, in the URL text box the
values that have been passed in.
However, I am unable to echo these values. If I have:
<table>
<tr>
<td>
<?php
// import_request_variables(gP,"");
$recdpoet=$_GET[''newpoet'']
$recdpoem=$_GET[''newpoem''];
if(isset($recdpoet) and strlen($recdpoet) 0)
echo $recdpoet;
?>
</td>
</tr>
The page opens completely blank. What might be
going wrong? I have tried uncommenting the above line, but it does not
work.
Any help or suggestions will be greatly appreciated.
推荐答案
< / tr>
< tr>
< td align =" center">< input TYPE =" SUBMIT" VALUE =添加诗人和
诗歌>< / td>
< / tr>
< / table>
< / form>
当接收页面打开时,我可以在URL文本框中看到
值已被传入。
但是,我无法回应这些值。如果我有:
< table>
< tr>
< td>
< ?php
// import_request_variables(gP,"");
</tr>
<tr>
<td align="center"><input TYPE="SUBMIT" VALUE="Add Poet and
Poem"></td>
</tr>
</table>
</form>
When the receiving page opens I can see, in the URL text box the
values that have been passed in.
However, I am unable to echo these values. If I have:
<table>
<tr>
<td>
<?php
// import_request_variables(gP,"");
recdpoet =
recdpoet=
_GET [''newpoet'']
_GET[''newpoet'']
这篇关于请帮助 - 非常奇怪的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!