Re: [PHP-DB] Too many $_GETs?

2005-04-25 Thread The Disguised Jedi
The browser may also have something to do with it.
 Use hidden input forms to transfer data from page to page. Uses POST and 
makes for a prettier URL.
 input type=hidden name=a value=?php echo $a; ?
input type=hidden name=b value=?php echo $b; ? input 
type=hidden name=c value=?php echo $c; ?
input type=hidden name=foo value=?php echo $foo; ?
input type=hidden name=bar value=?php echo $bar; ?
put those in the form, and change the method to POST. Then you can access 
the data via the $_POST var.
 ?php
 echo $_POST['a'];
 echo $_POST['b']; echo $_POST['c']; echo $_POST['foo']; echo $_POST['bar'];
 ?
 And yes, it is that simple.

-- 
The Disguised Jedi
[EMAIL PROTECTED]

Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm 
world-wide BABY!
PHP rocks!
Knowledge is Power. Power Corrupts. Go to school, become evil

Disclaimer: Any disclaimer attached to this message may be ignored. However, 
I must say that the ENTIRE contents of this message are subject to other's 
criticism, corrections, and speculations.

This message is Certified Virus Free


Re: [PHP-DB] php sessions

2005-02-15 Thread The Disguised Jedi
you could put in a database an action field, and have a function check
the action on every page.  If the action says certain things, like
KILL or REVALIDATE, then have it perform certain actions.  For the
first, I'd output an error page that says something like Your session
was killed by administrator (Admin ID).  Or, ask them for their
password before carrying out their request for the latter example.

there are several ways to do this.  It all depends on what your
server's capabilities and resources are (databases and such) and
personal preference.

HTH,

-- 
The Disguised Jedi
[EMAIL PROTECTED]

Now you have my $0.02.  Or .01 Pounds, .014 Euros, or $0.025 CAN.  I'm
already internationally compatible!
PHP rocks!
Knowledge is Power.  Power Corrupts.  Go to school, become evil

Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] works on command line, not on server

2005-01-25 Thread The Disguised Jedi
try users@httpd.apache.org list


On Tue, 25 Jan 2005 14:21:25 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have a new installation of php on an existing apache 2 server, and
 something strange is happening.  The file 'test.php' works and connects to
 the database when run through the command line, but when run from the web
 server (http://server/test.php) produces a segmentation fault:
 
 child pid 29056 exit signal Segmentation fault
 
 php itself does work, and a file with only phpinfo() in it runs fine on both
 the server and the command line.  Has anyone seen anything like this before?
 Any ideas?
 
 ?php
 $link = mysql_connect(localhost, user, pass)
 or die(Could not connect);
 mysql_select_db(disorder) or die(Could not select database);
 
 print hello;
 
 ?
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
The Disguised Jedi
[EMAIL PROTECTED]

PHP rocks!
Knowledge is Power.  Power Corrupts.  Go to school, become evil

Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php