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. */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php