Re: script problems

From: Date: Mon, 28 Apr 2003 11:08:43 +0000
Subject: Re: script problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145504@lists.php.net to get a copy of this message
You can create javascript code with php, but not execute it. The code will be executed within the browser. In your case you want <?php echo $_POST['element1']; ?> Prince wrote:
hi i have tis web page: <html> <head> <title>test web page</title> </head> <body> <form name="form1" action="index2.php" method="post"> <input type="text" name="element1"><br> <input type="checkbox" name="checkbox" value="checkbox1" checked> <input type="submit"> </form> </body> </html> now the script index2.php?? <?echo?>document.form1.element1.value<?;?> .... //all through the elements on the form... and my out put is: error on line 1 of index2.php? unknown or undefined object: document.form1.element1 is not defined im sort of lost now trying to use javascript with php


« previous php.general (#145504) next »