my simple form but can't work!!

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

tisa
New php-forum User
New php-forum User
Posts: 9
Joined: Tue Dec 02, 2003 6:45 pm
Location: Hong Kong

my simple form but can't work!!

Postby tisa » Wed Dec 03, 2003 7:00 pm

My form: testing.php
<html>
<body>
<form action='testing1.php' method='post'>
<?php

echo "name= <input name=a >";
echo "<input type=submit>";

?>
</form>
</body>
</html>


testing1.php
<html>
<body>

<?php
echo $a;

?>

</body>
</html>

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Wed Dec 03, 2003 7:11 pm

register_globals is now turned off.... use $_POST['a'] instead of just $a :wink:

tisa
New php-forum User
New php-forum User
Posts: 9
Joined: Tue Dec 02, 2003 6:45 pm
Location: Hong Kong

it's work now..

Postby tisa » Wed Dec 03, 2003 7:15 pm

thanks..
but can you tell me why?

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Wed Dec 03, 2003 7:39 pm

If there's one question we've answered too many times, it's this one. See this post (it's the post by me toward the bottom).


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests

cron