06-03-2005, 07:58 PM
|
#8 (permalink)
|
|
The Acquainted
Join Date: May 2005
Posts: 106
Thanks: 0
|
Seperating pages in to different pages is a good thing. its easy to handle them.
OR
you have tohe option to do it right now, WITHOUT CHANGING any thing. here's the idea
add.php
PHP Code:
//<form>
//INPUT fields here
//</form>
search.php
PHP Code:
//<form>
//SEARCH fields here
//</form>
show.php
PHP Code:
//connect to database and show results here
main.php [THIS IS THE MAAIN PAGE]
PHP Code:
<DOCTYPE....
blah blah
if(isset($_GET['addme'])):
include('add.php');
elseif(isset($_GET['search']))
include('search.php');
else:
include('show.php');
if you just paste the code(in the if statements) in the appropriate pages. it'll work without doing anything extra. it'll look more professional and it'll be easy to handle
hope this helps
EDIT: again i prefer to use {} in if statements rather than : {} are just easy to read and notice, coz you always know where it'll end
__________________
---------------------------
Errors = Improved Programming.
Portfolio
|
|
|