Hello, I have been designing basic HTML webpages for a few years now and am very proficient in HTML. However because of its limitations with database connections and form processing, I have decided to start using PHP.
I am making a registrations script for users to add a free classified to my classifieds section of my website, the registration page will be 3 pages long, but in actuality, it will be just one page with functions that contain the next page being called after each form is submitted.
I am having trouble trying to call the third page, I can get the first and second page to display but not the third, let me give you an example of my code.
<?php
require_once('fns.php');
if (empty($POST)) { sellerad1(); } // Contains the HTML for this form
elseif ($POST) { sellerad2(); } // Contains the HTML for this form
else ($_POST) { postform(); }// Contains the HTML for this form
Obviously, they all use POST as the forms action.
in the elseif statement, is there any way to modify it so that it can check if $_POST contains information from sellerad2() only or what?
How can I make the postform() display after sellerad2() has been submitted?
Any help would be appreciated, I am new to this so please bare with me.
Thanks in advance,
Paul
?>