Thread: submit form?
View Single Post
  #5 (permalink)  
Old 12-12-03, 02:08 PM
tcooper tcooper is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you very much for your help. I new there should be some type of if or function or something but just could not get it figured out. This really helps.

Quote:
Originally Posted by NeverMind
well , it depends on what are the conditions you want ..
like when do you want it to be submited to itself and when do you want it to be sent to another ?
anyway IF statments are your friends in this case ..
example :
PHP Code:

if ( $condition_1 === true ) {

$dist=$_SERVER['PHP_SELF']; //this will post to the file itself ..
} elseif ( $condition_2 === true ) {
$dist='new_file.php'//the other file you want to post to ..
}

echo
'<form method="POST" action="'.$dist.'">'
that's how you change the direction of the file ..
but give us more details so we can help more ..
Reply With Quote