Just curious if one of these ways is better (i.e. more efficient) than the other.
I have an index.php page where there is a menu across the top with 5 choices. For example, HOME | MONKEYS | CATS | DOGS | KANGAROOS.
I have ALL the code for those 5 pages on that single index.php file. Now is it better to...
1. Use FORM SUBMIT BUTTONS for each menu option. So I'd have the action of the form be "index.php" and then code like this for the menu...
Code: <input type='submit' name='submit' value='HOME' ><input type='submit' name='submit' value='MONKEYS' >
And then I would have IF statements to see which Submit button was clicked and show the right info accordingly.
OR
2. Use appended URLs and then use GET to see which info should show, as in...
Code: <a href="index.php?page=home">HOME</a>|<a href="index.php?page=monkeys">MONKEYS</a> (etc, etc)
And then have IF statements using GET to check the URL and show the right info accordingly.
I'm not sure one way is better than the other, but just curious if anyone has any thoughts. Like maybe one of these processes in more server intensive than the other??
NOTE: If I use Google Analytics, I guess might help to see appended URLs to know which page got more hits, rather than just seeing info for index.php without knowing if they visited MONKEYS, or CATS or whatever. But please answer the question as if Google Analytics was not relevant.
Thanks
Data type mismatch
Hi, I am migrating data from algol to c.I mapped real datatype in algol to double datatype in c.real has 6 bytes storage.i got one formula in unisys manual which is about the internal representation
PHP template help
Ok, I don't know if anyone can help me but I am using PHP templates to make a site. I am a newbie and so I am finding this quite difficult so I thought I would ask some folks much better than me. I
Using cURL to PUT
Can somebody help with the correct php code to make a cURL PUT request. Here is a sample of code below that uses POST, but I need to modify this one so that it uses PUT instead.Code: <?php
Getting Subdomain Name With PHP?
I want to grab the subdomain name with PHP so I can generate database queries.for example my subdomain is san-jose.mydomain.comHow would I go about grabbing the subdoman name with PHP? Thanks!
WELCOME SCREEN
first of all let me tell you what does my script do, it´s a very simple query to show a email from a database, (EX: Welcome: user@server.com). i get the email whit the id.
array ...
hiCode: function formatCategories($categories, $parentId){ // $navCat stores all children categories // of $parentId $navCat = array(); // expand only the categories with the same parent id
MySQL noob question
hi guysI have a simple mysql table set up, along the lines of Col 1 - Col 2 - Date_last_updated--------------------------------Som - Some - 06/11/2009 23:23:23Bob - Bob - 06/11/2009 23:30:30and so
PHP XML extraction text
I would like to extract an xml text and have that text directly echo(print) out on my web page. Here's the xml i want to extract:http://dblp.uni-trier.de/search/author?xauthor=SchekWhat I
problem with php server update from mid 2009
Hi,I have this navigation menu on 2 websites which used to work just fine. After a recent update to the php server, the menu stopped working properly. It still loads the pages but the highlighted
Convert .fdf to .pdf
I currently have a web form that uploads the form data to an .fdf file and emails it.However, I just realized that most people I email it to cannot open an .fdf and it needs to be in pdf.Is there any