Re: PLEASE HELP - Very odd problem



You are missing the semi-colon after $_GET['newpoet']

To find problems like this, turn on diagnostics by adding this to the start
of your php files:
<?
ini_set("display_errors","1");
error_reporting(E_ALL & ~E_NOTICE);
?>

Big suggestion: consider using a debug environment - life will be much more
pleasant. It will take several days to set up, but I think you will find it
is well worth it. After looking at several, I use Eclipse with XDebug:

Bug 169408 - Support for XDebug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=169408
(be sure to locate the pdf with detailed install instructions)

Eclipse PHP Project (PDT)
http://www.eclipse.org/php

--
Mike Russell
www.curvemeister.com/forum/


<cpptutor2000@xxxxxxxxx> wrote in message
news:1172964662.690701.325360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • Re: File with no link
    ... You do this in a .php file which as far as the user is concerned ... at the script I suggested. ... When User1 clicks on the link, it opens up ... So, if User1 knows about User2, he can see User2's pdf file. ...
    (comp.lang.php)
  • Problem PDT-Subclipse
    ... any file type that is handled by an PDT editor ... gives me the error below, any other file types opens ... (of course this will take away all the rich features that the php ...
    (comp.lang.php)
  • Problem PDT-Subclipse
    ... any file type that is handled by an PDT editor ... gives me the error below, any other file types opens ... (of course this will take away all the rich features that the php ...
    (comp.lang.php)
  • Probem PDT-Subclipse
    ... any file type that is handled by an PDT editor ... gives me the error below, any other file types opens ... (of course this will take away all the rich features that the php ...
    (comp.lang.php)
  • Re: Screen dumping dynamically generated PHP web pages?????
    ... > I have a some PHP dynamically generated web pages that are dished up ... You could make a simple php script that just opens the URL you want to take a ... that the file open functionalities in php allows you to open URLs. ...
    (alt.php)