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

Problem with a simple form

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Problem with a simple form

Postby glow » Wed Dec 25, 2002 5:32 am

Hi all! i'm trying to post some information in a formular to a other php file... like the example below.. but it doesn't works and i don't know why!? i hope some of you PHP-Gurus can help me on! :-)

Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
   <title>Untitled</title>
</head>
<body>
<form action="output.php" method="post">
<input type="text" name="test" value="demotext" size="20">
<input type="submit" name="Absenden" value="Absenden">
</form>
</body>
</html>


so and then i try to grab the values in the textboxex with the code below... but i get an error: Notice: Undefined variable: test in c:\wwwroot\phpueb\output.php on line 2

Code: Select all
<?
   echo "Show me $test";
?>


any ideas?? THX ahead for your time!
glow
New php-forum User
New php-forum User
 
Posts: 10
Joined: Tue Nov 26, 2002 11:00 am

code is ok

Postby glow » Wed Dec 25, 2002 5:43 am

hi all! i found out, that my problem refers to my local installed Apache (Version 2.0.42) Server! So at this time i've no idea what exactly the problem with my server is... i come back if i know the problem. 8)
glow
New php-forum User
New php-forum User
 
Posts: 10
Joined: Tue Nov 26, 2002 11:00 am

sooo i've found something...

Postby glow » Wed Dec 25, 2002 6:31 am

glow
New php-forum User
New php-forum User
 
Posts: 10
Joined: Tue Nov 26, 2002 11:00 am


Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

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