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=http://www.htmlforums.com/archive/index.php/"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.since you have a old version it had register_globals ON. now 4.3 will have them off by default for security and speed reasons.
so your second scritp needs to be
<html>
<head>
<title>You Are! ...</title>
</head>
<body>
<?php
print('Well, hello ' . $_POST['person'] . ', nice to meet you!');
print('<br>');
print('<a href=http://www.htmlforums.com/archive/index.php/"who_are_you.php?person=' . urlencode($_POST['person']) . '">Back to Who Are You?</a>');
?>
</body>
</html>Thank you
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=http://www.htmlforums.com/archive/index.php/"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.since you have a old version it had register_globals ON. now 4.3 will have them off by default for security and speed reasons.
so your second scritp needs to be
<html>
<head>
<title>You Are! ...</title>
</head>
<body>
<?php
print('Well, hello ' . $_POST['person'] . ', nice to meet you!');
print('<br>');
print('<a href=http://www.htmlforums.com/archive/index.php/"who_are_you.php?person=' . urlencode($_POST['person']) . '">Back to Who Are You?</a>');
?>
</body>
</html>Thank you