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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo