you are not echoing a variable so register_globals set to On will have no effect in this case (I would switch it back Off as it will be more secure and you should get used to coding that way)... Do you see any errors in the server log? Does it work if you use <?php instead of <? as your opening tag? When you view the source of the resulting page do you see your code in the html?
Rich -----Original Message----- From: paradiddles [mailto:[EMAIL PROTECTED]] Sent: 24 January 2003 17:26 To: [EMAIL PROTECTED] Subject: [PHP-WIN] newbie form question.. I just created a simple html form and a .php file as a test to be sure php is working right. All I want the form to do is test the echo construct (which prints the text between the opening and closing php tags) to be sure my php interpreter is working right. The line in my html form used to identify the method looks like this: <form action="processorder.php" method=post> The line in my html form used to trigger the submit button looks like this: <input type=submit value="Submit Order"> The code in my php file called processorder.php looks like this: <html> <head> <title>Seans Designs - Order Results</title> </head> <body> <h1>Seans products</h1> <h2>Order Results</h2> <? echo "<p>Order processed."; ?> </body> </html> The problem is when I hit the submit button on my form, I see all the text accept for the text Order processed which is contained in the php tag. In other words, its as if the echo construct is being completely ignored. I think the problem has something to do with the register_globals=on or off thing. So, I changed the setting from off (which was the default setting) to on and restarted apache. No joy! Is there something in the code that I need to change? thanks -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php