| | |
using multiple php files
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2009
Posts: 3
Reputation:
Solved Threads: 0
Hi guys,
This may seem a little simple, but I'm new to html/php programming so here goes
I have a listbox with six items on my page.
I would like to call a different php file depending on what option was selected
psudo code would be
if selection = 1 then use 1.php
if selection = 2 then use ...
Is this possible?
Any sample code would be very helpful.
My page has a variety of barcode types, and I would like to use the same input page but call different functions depending on which option was selected.
N eil
This may seem a little simple, but I'm new to html/php programming so here goes
I have a listbox with six items on my page.
I would like to call a different php file depending on what option was selected
psudo code would be
if selection = 1 then use 1.php
if selection = 2 then use ...
Is this possible?
Any sample code would be very helpful.
My page has a variety of barcode types, and I would like to use the same input page but call different functions depending on which option was selected.
N eil
Neil
NRB Systems / UK
NRB Systems / UK
something like this would be helpful:
php Syntax (Toggle Plain Text)
switch($var) { case 1: include("1.php"); break; case 2: include("2.php"); break; case 3: include("3.php"); break; }
•
•
Join Date: Jul 2009
Posts: 3
Reputation:
Solved Threads: 0
Many thanks mrcniceguy
Will look into this. I thought it must be straightforward.
Neil
Will look into this. I thought it must be straightforward.
Neil
•
•
•
•
you use include function.
u can read more here
http://us3.php.net/manual/en/function.include.php
Neil
NRB Systems / UK
NRB Systems / UK
![]() |
Similar Threads
- All my php files has .tpl extension is there any editor to work on that (PHP)
- Concactinating Multiple Text Files Into One (Java)
- Multiple PHP installation on linux (Linux Servers and Apache)
- Need help in converting multiple text files into excel worksheets in a workbook (Shell Scripting)
- Using VBScript to read multiple HTML files (Visual Basic 4 / 5 / 6)
- hiding suplemental php files (PHP)
- IE won't open *local* PHP files anymore! (Web Browsers)
- Managing Multiple Photos or Other Files (Windows tips 'n' tweaks)
Other Threads in the PHP Forum
- Previous Thread: web crawler
- Next Thread: What i've done wrong?
| Thread Tools | Search this Thread |
apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date display dynamic echo email error fcc file files folder form forms freelancing function functions google href htaccess html image include incode insert integration ip javascript joomla limit link login mail match menu method mlm mod_rewrite multiple mysql oop pageing pagerank paypal pdf php problem query radio random recursion recursiveloop remote script search server sessions sms smtp soap source space sql strip_tags subversion support! survey syntax system table template tutorial undefined update upload url validator variable video virus web window.onbeforeunload=closeme; youtube





