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)
-   -   ALL PHP experts!!! Help on a user/pass page!! (https://gfy.com/showthread.php?t=133119)

IntenseCash 05-11-2003 11:48 PM

ALL PHP experts!!! Help on a user/pass page!!
 
Ok I have a php user and pass entry page.... I have an html page with body onload and js script. The js is a redirect.

How in the hell do I get it to work in my php password protect page?




Here is the php var:
//text they will see if user/pass correct
$text3 = "You got in!"


Thanks Guys,
Chuck

tical 05-12-2003 02:31 AM

What what in the what what?

Could you try and rephrase that question again?

Calvinguy 05-12-2003 02:33 AM

:1orglaugh :1orglaugh ... :helpme

PicBar 05-12-2003 02:35 AM

:helpme

VideoJ 05-12-2003 04:52 AM

Replace $text3=... with

readfile( filename );

where filename is the name of the html file you want to load.

See http://www.php.net/manual/en/function.readfile.php for more details.

ServerGenius 05-12-2003 05:20 AM

If you're going to code it the same crappy and insecure way
80% of the people out there do then you shouldn't forget to edit
your php.ini file and set register_globals = On else it won't work.
Current php version have register_globals = Off

in case you don't know php.ini can usually be found in /usr/local/lib

DynaMite

NJ Dave 05-12-2003 07:47 AM

Quote:

Originally posted by DynaSpain
If you're going to code it the same crappy and insecure way
80% of the people out there do then you shouldn't forget to edit
your php.ini file and set register_globals = On else it won't work.
Current php version have register_globals = Off

in case you don't know php.ini can usually be found in /usr/local/lib

DynaMite

...or you could try using the $_GET and $_POST variables that PHP now offers.

grumpy 05-12-2003 07:57 AM

rephrase the question so we understand.


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

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