![]() |
|
#1
|
||||
|
||||
Calling a new pageAs a neo phper, I keep running into things I know how to do in normal programming languages, but because of terminology differences I'm finding it difficult to find the info I need for web/php. So....
I have a form with 3 buttons: PHP Code:
In birpro.php execute the following: PHP Code:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
||||
|
#2
|
||||
|
||||
|
You of all people will appreciate that there's no one correct answer in this situation. It all boils down to individual preference and style.
The simplest and perhaps the least complicated solution for this particular example may be the "include/require" solution. One of these, I can't remember which, will only load the "require(script)" if it's in the condition that's true. Sometimes, it may be a lot more efficient to simply create little custom functions to handle each condition. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
Dang, forgot about the simplest version -- call a subroutine! I'm too used to HTML so I forgot I didn't have to actually call a separate page...
Thanks for the clue... I'll look into the require() command, too. __________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#4
|
||||
|
||||
|
My postings and articles about content manangement talk exclusively about using 'include' to load particular PHP scripts, depending on what area of the website you are browsing to.
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| next page | skyloon | MySQL / PHP Forum | 5 | 17-Oct-2004 13:04 |
| Position Error on Search page | BobbyDouglas | GIDForums™ | 4 | 28-Jul-2004 17:35 |
| [script] E-mail webmaster error page | BobbyDouglas | PHP Code Library | 0 | 19-Aug-2003 21:10 |
| Search Engine Positioning 101 and 201 "How To" Tips... | 000 | Search Engine Optimization Forum | 0 | 29-May-2003 11:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The