Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

my simple form but can't work!!

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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>
tisa
New php-forum User
New php-forum User
 
Posts: 9
Joined: Tue Dec 02, 2003 6:45 pm
Location: Hong Kong

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

register_globals is now turned off.... use $_POST['a'] instead of just $a :wink:
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

it's work now..

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

thanks..
but can you tell me why?
tisa
New php-forum User
New php-forum User
 
Posts: 9
Joined: Tue Dec 02, 2003 6:45 pm
Location: Hong Kong

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).
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.