Not sure if this the best forum for this, but here goes:
Background: I have an account with Smugmug.com They recently revamped their website. With this revamp, they no longer allow you to add your own Javascript to customize your page. They only allow HTML and CSS modifications. So I created a free website through awardspace that allows me to run JS and PHP scripts.
I want to create a way for a client to enter their last name and their password and have their pages opened in new tabs.
Question: How do I do this without javascript?
I can do it for a single page using PHP, but as far as I can tell PHP cant open multiple tabs...
Here's the HTML:
<form action="http://myfreescriptingsite.com/ClientSearch.php" method="get"> Name: <input type="text" name="tName"><br> Password: <input type="password" name="tPassword"><br> <input type="submit"> </form>
I control the ClientSearch.php file. This could also be an HTML page or a JS file...
Here is the ClientSearch.php file:
$name = strtolower($_GET["tName"]); $password = $_GET["tPassword"]; switch($name){ case "smitherton": if ($password == "password") {header("Location: http://www.myrealwebsite.com/Clients/Smitherton/SmithertonFamily2013");} break; default: header("Location: http://www.myrealwebsite.com/Client-Search/"); }
Again, the above PHP code only works for one location. I need it to load up multiple pages:
if ($password == "password") { header("Location: http://www.myrealwebsite.com/Clients/Smitherton/SmithertonFamily2011"); #header("Location: http://www.myrealwebsite.com/Clients/Smitherton/SmithertonFamily2012"); #header("Location: http://www.myrealwebsite.com/Clients/Smitherton/SmithertonFamily2013"); }
Any ideas on how to accomplish this?
Thanks,
Dave