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

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;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.