/    Sign up×
Community /Pin to ProfileBookmark

From php 4.1 to php 4.3.4 problem???

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.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@MstrBobMay 03.2004 — 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...
×

Success!

Help @ddragas spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...