| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Oct 2003
Posts: 3,472
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Getting information from a field How do i get information from a field and then add it to an if statement? I have: PHP Code: Nvm, i got it.
__________________ hostvouchers - Coupons and Reviews for the top web hosts! (shared, reseller, vps, servers, adult, offshore, proxy)
Last edited by killaklown; 07-03-2006 at 12:43 PM.
|
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: Tucson, AZ
Posts: 689
![]() | You need to get the variable first via $_POST['name'] access semantics. Nobody in their right mind leaves register_globals on anymore. For example, to check for a flag called "foo", my php would do this: Code: $flag = $_POST['foo'];
if( isset($flag) ) {
echo "way to go smartguy, you typed \"$flag\".";
} ????: NamePros.com http://www.namepros.com/showthread.php?t=213141 Code: <input type="text" name="flag" /> |
| |