| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Oct 2005 Location: Milford MA
Posts: 692
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Make one php file post info to another? [+rep] I'm working on re-doing my site, and I have a login panel. I have a dropdown of "cPanel", "WHM", and "Client Center". How would i make this info that's relayed to login.php, be sent to difrent locations depending on what $i['spot'] is? ($i is input, in all my scripts) Like: PHP Code: Edit: Please, don't say to use hidden inputs and a "Continue" button or something. |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2004 Location: Kizmiaz
Posts: 1,091
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | http://www.php.net/manual/en/function.header.php And I'd use 'switch' (http://www.php.net/manual/en/control...res.switch.php) rather than if especially if you're going to have a few cases. Good luck Lux
__________________ 1 Cent Web Hosting @ Online HostGatorVoucher.com Adsense Hack for Vbulletin - Fully 3.6 Compatible ForexArea.com Free E-Course in Programming EA's |
| |
| | #5 (permalink) |
| Senior Member Join Date: Jul 2004 Location: Kizmiaz
Posts: 1,091
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Using a 'search engine' (dogpile.com) and 5 seconds of my time I found this... http://www.faqts.com/knowledge_base/...d/12039/fid/51 Lux
__________________ 1 Cent Web Hosting @ Online HostGatorVoucher.com Adsense Hack for Vbulletin - Fully 3.6 Compatible ForexArea.com Free E-Course in Programming EA's |
| |
| | #6 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Atlanta, GA, USA
Posts: 335
![]() ![]() | Here is what I use: PHP Code: |
| |
| | #7 (permalink) | ||||
| NamePros Member Join Date: Jun 2004
Posts: 92
![]() | syntax?
i hate to sound stupid but i've never seen such syntax before and i was just wondering what's going on? seems like some kind of shorthand? they seem to be if/else statements, i've just never seen this syntax...
__________________ Bais Menachem | ||||
| |
| | #9 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Atlanta, GA, USA
Posts: 335
![]() ![]() | Yep, see the PHP Manual for more info on it. |
| |
| | #10 (permalink) | ||||||||||||
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
PHP Code:
| ||||||||||||
| |