troubleshooting Question

PHP with Dropdown box for links

Avatar of Simon336697
Simon336697Flag for Australia asked on
HTMLPHPWeb Applications
4 Comments2 Solutions385 ViewsLast Modified:
Hi guys hope you can help.

Id like to build a php file with the following format guys.

========================================================= test.php

Please select a link to go to....

<combo box with the following entries>
-- Please Select below
<Server Variable>/upload_software.html
<Server Variable>/upload_test001.html
<Server Variable>/upload_test002.html


Upon initial load of this php file, the combo box defaults to nothing selected defaults to:

-- Please Select below

When the user then selects an entry, the user then clicks on "Go" and the user is taken to that link.

You will have noticed that I put a server variable eg.

<Server Variable>/upload_test001.html

I dont know how to code this in PHP, and the reason I have put this here, is because I can access the server through 2 different names

eg. http://fire


So in order for the link to go to the right location when a user selects a link from the combo box, the server name the user is accessing has to be found first.

Any help on this greatly appreciated.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros