| | |
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 |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code codingproblem cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail memmory menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select send server sessions sms snippet soap source space speed sql static structure syntax system table tutorial up-to-date update upload url validation validator variable video web wordpress xml youtube





