Re: PHP Logon Script Help....

From: Date: Sun, 07 Apr 2002 07:20:12 +0000
Subject: Re: PHP Logon Script Help....
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-18285@lists.php.net to get a copy of this message
I cannot check the ssn against the database. ociparse returns true if the query was successful and ociexecute does the same. What do I have to check the true value of I guess is my main question. Pusta "Jason Wong" <phplist@gremlins.com.hk> wrote in message news:php.db-18283@news.php.net... > On Sunday 07 April 2002 13:41, Pusta wrote: > > I am trying to write a simple login script, and I am new to PHP. Here is > > what I have so far: > > > > <?php > > > > $stmt = $HTTP_POST_VARS['ssn']; > > $oerr = OCIError(); > > $dbconn = OCILogon("user", "pass", "database"); > > $search = ociparse($dbconn, "select GURMAIL_PIDM from GENERAL_GURMAIL > > where GURMAIL_PIDM = $stmt"); > > ociexecute($search); > > > > > > ?> > > > > Basically I have an HTML form that links to this page where a user enters > > their social security number and this script compares it to a database. If > > its there, redirect to a new page, if not present an error message. > > > > > Can anyone help? > > Which bit are you stuck on? To redirect to a different page use the header() > function. > > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Lisp, Lisp, Lisp Machine, > Lisp Machine is Fun. > Lisp, Lisp, Lisp Machine, > Fun for everyone. > */

« previous php.db (#18285) next »