GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   stupid PHP question (https://gfy.com/showthread.php?t=218030)

x2dio 01-07-2004 12:45 PM

stupid PHP question
 
what would be syntax to do something like:


if variable=x do nothing

else "launch this url"

JSA Matt 01-07-2004 12:46 PM

screw it.. smokey ruined the board.. can't even post PHP code now

hornycash 01-07-2004 12:48 PM

PHP Code:

<? if($variable hahahaha"x") { $do = "nothing"; } else { $do = "whatever"; } ?>


biskoppen 01-07-2004 12:48 PM

if( $intMyValue = = 1 ){ die(); }
Header("location:http://www.google.com");

With no space between the ='s

hornycash 01-07-2004 12:49 PM

oh, i missed the "go to url" thing in your post........

x2dio 01-07-2004 12:56 PM

oh
I don't need to type in ELSE or something?

x2dio 01-07-2004 01:22 PM

burp

pornanza 01-07-2004 01:23 PM

&lt;?php

if ($variable != 'x') {
header('Location: http://this.url');
exit;
}

?&gt;

ryan

- AFN - 01-08-2004 06:11 AM

screw it i dont need to type


All times are GMT -7. The time now is 08:02 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123