FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PNoHP forwarding [Solved, Check Here For Solution]





tomahawk19
Hello,

I'm trying to have a form with a drop down menu where a user selects a page to go to. I have the form with vars written, that's not the difficult part for me, I haven't used php in several months and have forgotten a little bit and need some help.

Now, my form is set up with names with variables set as firstnamelastinitial. I need to have each one go to a sub-folder/theirname.html, but don't want to have to add .html to each, and need it to process it in php to get the pages and forward you to the proper page. Anyone that can help, let me know immediatelly. Thanks for all your help.
tomahawk19
Problem Solved

Code:
<?php
  $loan_officer = $_POST['loan_officer'];
  $web_page = "loan_officer/";
  $web_page .= $loan_officer;
  $web_page .= ".html";
  header("Location: $web_page");
?>


So simple, I guess I just had to think about it for a little bit...lol[/code]
Related topics
Invalid License File
Why My Computer Always Restart
taskbar gone
Direct X Version Driver
Has anyone solved the Awstats problem...?
10 things you should know about every Linux installation
Scripting DB to VSS: Question about Diffs
E-Mail Forwarding to Rogers Yahoo!
WILL universe ever end?
Philosophy Essays & Philosophy Texts
Permission denied! Can't access DirectAdmin at :2222 Help!!!
Closed Topics - SOLVED
domain forwarding and javascript
Referring to "The Truth"
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.