Hi guys! Here's my problem.
I got a file named ADM.php and i use a form like this:
print "<form method='GET' action='Modify.php'>";
print "<input type='submit' name='Add' value='+/-'></input>";
print "<input type='hidden' name='Modify' value=".$Question['QuestionName']."></input>";
$Question['QuestionName'] shows at screen: 'This is a test'
I got an other file (Modify.php) where I'd like to get "This is a test" by $_GET. The problem is that I only get 1 word which is "This". Can someone help me please ?
$_Get
Moderator: General Moderators
-
Shadowizoo
- Forum Newbie
- Posts: 3
- Joined: Mon Oct 06, 2008 8:27 am
Re: $_Get
Yes I'm closing my form via </form>
Re: $_Get
My test worked so don't know what might be wrong...
Code: Select all
<html>
<head>
<title>Modify.php</title>
</head>
<body>
<?php echo $_GET['Modify']; ?>
</body>
</html>
-
Shadowizoo
- Forum Newbie
- Posts: 3
- Joined: Mon Oct 06, 2008 8:27 am
Re: $_Get
Ok i got it !!
I typed value=".$Question['NomQuestion']." instead of value='".$Question['NomQuestion']."'
I typed value=".$Question['NomQuestion']." instead of value='".$Question['NomQuestion']."'