Thread: submit form?
View Single Post
  #6 (permalink)  
Old 12-12-03, 03:30 PM
woyrz's Avatar
woyrz woyrz is offline
Newbie Coder
 
Join Date: Dec 2003
Location: montreal
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by tcooper
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.

I use a simple way to do understand i think

You create a hidden field inside your form. Name it viewform or whatever!!
<form action= <?php print $_SERVER['PHP_SELF'] ?> method="post">
<?php
if (!isset($_POST[viewform])){
the form
RELY IMPORTANT
<input name=\"viewform\" type=\"hidden\" value=\"view\">
}
if($_POST[viewform] == "view"){
the send form procedure
}
?>
that should work
Reply With Quote