[PHP-WIN] Re: Add slashes saga

2003-03-11 Thread rotsky
I've just been through this! Let's say that your variable containing the name is $lastname, using the following when setting up a form to pass values by POST worked for me: blah...blah...name='lastname' value ='".htmlentities(stripslashes($lastname))."'>. etc etc I actually have a page whe

[PHP-WIN] Re: stripslashes problem

2003-03-10 Thread rotsky
Well I could, but then I get a problem at the next stage. To summarise, there are three stages: - entry form - confirmation - display details and say 'is this okay?' - write to database If you enter O'Brien in the form, it's shown as O\'Brien on the confirmation. If I leave it that way, when it r

[PHP-WIN] htmlentities

2003-03-10 Thread rotsky
Further to my post about problems with single quotes in a login sequence... I also have a form in which I enter the text of articles. These naturally contain quotes of both types, ampersands and all that good stuff. So, I read the text in from a database and I've tried applying htmlentities() to t

[PHP-WIN] stripslashhes problem

2003-03-10 Thread rotsky
I have a user registration form. If someone enters a name like O'Brien, then it turns up on the next page (having been POSTed) as O'\Brien. So I use stripslashes() to remove the slash and it displays fine. So far so good. Then I POST the details again to the next page which writes the details to t

[PHP-WIN] Getting current page details

2003-03-09 Thread rotsky
I'm using a login routine and I'd like to return the user to the page where they started before going to the login form. I figured I could do this by grabbing the current page details, putting these into a session variable and using that to link back to the page later. So the question is, how do I

[PHP-WIN] Setting sessions variables

2003-03-08 Thread rotsky
Let me get this straight - if register_globals is set to off, the best way to assign a value to a session variable is to use: $_SESSION['varname'] = 'value' ; This both creates the variable and sets it. And then I can access this from any page (that has session_start() at the beginning) with: $s

[PHP-WIN] Re: Disappearing names

2003-03-06 Thread rotsky
cal system - including changing the names of those two columns, which I forgot to change on the server. Oddly, this only shows up on this one page, as missing info. That'll teach me... "Rotsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've got the

[PHP-WIN] Disappearing names

2003-03-06 Thread rotsky
I've got the following routine in a login page. What happens is that the first time the user goes to the page, a form is shown. The user enters ID & password and clicks a button. This calls the same page again but with a POSTed variable 'mode' set to "checklog" so that this is what the user gets th

[PHP-WIN] Re: The inevitable LoadModule problem - sorted

2003-02-23 Thread rotsky
d them to the right directly and all is well - bliss! Right, I've got Apache, PHP and MySQL installed and some books on the way from Amazon. Wish me luck...! "Rotsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > No luck with that. I copied the php4apache2.dll

[PHP-WIN] Re: The inevitable LoadModule problem

2003-02-23 Thread rotsky
No luck with that. I copied the php4apache2.dll and php4apache.dll files - and then all the files in /sapi/ into both the Apache root folder and the 'modules' sub-folder - Apache still can't find it... "Per Christian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It works best with

[PHP-WIN] The inevitable LoadModule problem

2003-02-23 Thread rotsky
Okay, I know you've all heard this one before, but I'm really new to all this, can't really claim to be a programmer and am on a steep learning curve, so... I've installed PHP 4.3.1 and Apache 2.0.44. I've made the various changes to Apache's httpd.conf file, including the infamous line: LoadModu