Reply to PLEASE HELP - Very odd problem

Your name:

Reply:


Posted by cpptutor2000@yahoo.com on 03/03/07 23:31

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация