Click to See Complete Forum and Search --> : From php 4.1 to php 4.3.4 problem???


ddragas
05-03-2004, 03:40 PM
Hi all

My problem came up when I've install new version of php 4.3.4 (becouse my hosting server has this version).

Don't know why is this happening but I think this is strange.

Here is code from first script - page.


<html>
<head>
<title>Who Are You?</title>
</head>
<body>
<form action="you_are.php">
Please enter your name:<br>[AU: OK to lowercase all HTML tags, for consistency and per current W3C standards?-PG][Definitely, at work we use all upper case and at home I am a lowercase kinda guy so I slip up, lower case is the rule -JA]
I am...
<?php
print('<input type="text" name="person" value="' . $person . '"size="15">');
?>
<input type="submit" value="Go!" size="15">
</form>
</body>
</html>




here is script from second script - page.

<html>
<head>
<title>You Are! ...</title>
</head>
<body>
<?php
print('Well, hello ' . $person . ', nice to meet you!');
print('<br>');
print('<a href="who_are_you.php?person=' . urlencode($person) . '">Back to Who Are You?</a>');
?>
</body>
</html>


Problem seams to be that in second script-page variable "$person" become nothing.

This is yust an example. I've allmost made entire site, and now this problem came up.

Everithing was working fine in version 4.1

Please help me.

MstrBob
05-03-2004, 04:30 PM
May I just ask, why are you using php to print the text field? Why not simply enter it as standard HTML? Second, you shouldn't be setting the value of person if the user is supposed to enter it. Hope it helps some...