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

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by nrbsneil
0

something like this would be helpful:

switch($var)
{
     case 1: include("1.php");
     break;
     case 2: include("2.php");
     break;
     case 3: include("3.php");
     break;
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.