|
|
Posted by Mr. Newt on 05/20/07 14:46
"Olaf Schinkel" <trash@schinkel.tv> wrote in message
news:46500e1b$0$20285$9b4e6d93@newsspool3.arcor-online.net...
> Hello!
>
> "Mr. Newt" <lektrikpuke@_yahoo.com> schrieb im Newsbeitrag
> news:86SdndqCZaXAEtLbnZ2dnUVZ_oipnZ2d@comcast.com...
>> Hi y'all,
>>
>> Is there a tutorial out there that shows how to write script that avoids
>> using "register globals?"
>>
>> I'm doing lots of get and post commands and they seem to rely on globals,
>> or am I wrong?
>
> Do you mean, you use the G&P Variables direkt?
> (username is a variable, that comes with get and post
> (....index.php?username=blabla ...)
> if ($username) == ....
> and not
> if ($_GET['username']
> or
> if ($_POST['username']
> or for both
> if ($_REQUEST['username']
>
> Olaf
>
>
I read in the PHP ini file that one should try to write code that doesn't
require globals. An example of what I'm doing is: <FORM
ACTION="insert_data.php" METHOD=POST> Am I confused?
It appears I another problem in the PHP configuration (ini). It seems my
linux installation requires the default host defined.
I have this defined in my connect.php file. What is the deal?
Connect file as it stands:
<?php
$conn = mysql_connect("localhost", "user_name", "password");
mysql_select_db("dbase_name", $conn);
?>
Robert
Navigation:
[Reply to this message]
|