foran
asked on
how do i make form send it contents to itself and execute a script in the page?
how do i make form send it contents to itself and execute a script in the page?
<form name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
o yes
no prob
ok try this
<?
if(isset($_POST['myname']) )
echo $_POST['myname'];
?>
filename.php
----------------------
<html>
<body>
<form action="filename.php" method=post>
<input type=text name=myname>
<input type=submit>
</form>
</body>
</html>
no prob
ok try this
<?
if(isset($_POST['myname'])
echo $_POST['myname'];
?>
filename.php
----------------------
<html>
<body>
<form action="filename.php" method=post>
<input type=text name=myname>
<input type=submit>
</form>
</body>
</html>
hey carcitecht dont you think your cutting the chase, to make page send variables to itself it requires far less work to use PHP_SELF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hola Carcitecht, I need a fast simple solution requiring a minumum amount of work on my part.
ASKER
thanks bartonjo2 simple and effective