| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | 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 | 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 | 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 | Here is what I use: PHP Code: |
| |
| | #7 (permalink) | |
| NamePros Member | syntax? Quote:
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 | Yep, see the PHP Manual for more info on it. |
| |
| | #10 (permalink) | |||
| NPQ's PA, Slave, and On Call Coder Technical Services | Quote:
![]() Quote:
PHP Code: Quote:
__________________ | |||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |