First of all, I like the new look to the forum. Very cool!
Now, I have a question that is probably simple enough, but I can't find the answer, so maybe one of you more experienced PHP-ers can help.
The question is, when do you use the one page approach (a form and the action on one page with this as the form's action:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
VERSUS, a "two-pager", where you gather user input on one page, and process the input on another page:
1) html form "form.htm"
<form action="process.php" method="post">
2)php page to process the form "process.php"
// retrieve form data
$info = $_POST['info'];
????
I have always gone under the assumption that you always have two pages, but I just read that there may be a 'security' risk by having the php that processes the html page in the same directory as the html page ?? SO, I was thinking of converting all my two pagers into one. Does this make sense and if so or not, why?
-Thanks a million.