see if
the cookie exists, (and that it is valid) and if it isn't there, then a
simple redirect.
I believe that redirect should work before any of the html is displayed.
Am i going about this totally the wrong way?
--
Matthew Harrison
Internet/Network Services Administrator
Gen
d the
string. As an example:
$name\n
\n
$address\n
\n
$tel
Didn't know how to lay it out.
Cheers
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have written the following script to let people download files from a web
browser without displaying the actual location, utilising a MySQL database.
It works ok, except that it renames the file download.cgi (the name of my
script). How can I make it keep the proper name?
forgot to attach the script didn't i. oh well, here it is:
###
appear.
cheers
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
if i have a file delimited by commas and i want to make a script that will
search to see if a word, passed in a query string, is in the file, and
redirect to one url if i does and one if it doesn't (both urls are also
passed via query strings)
thanks in advance
--
Matthew Harrison
Int
all sorted now, thanks to you experts. it was because I have prefixed my
variables with 'my' which restricted them.
On Friday 22 Mar 2002 3:34 pm, Matthew Harrison wrote:
> is there something that says a variable doesn;t get passed when calling a
> sub in the same script? i am
not connect to database" if !$dbh;
$sth = $dbh->prepare("UPDATE chars SET $spec1 = $spec1 + $spec2 WHERE id =
'$id'");
if ($sth && $sth->execute()){
}}
print <
The Fabled Lands - The Temple of $god
Thank you for becoming an
initiate of the Temple of
so that is all i have to write? seems a bit sparse compared with majority
of other perl code, but there we go, you obviously know more about this
that me.
On Thursday 21 Mar 2002 5:19 pm, fliptop wrote:
> [reply cc'd to list]
>
> Matthew Harrison wrote:
> > that doesn
file.
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
how can i make a script check whether a variable equals an existing system
username or not? the script does not run as root, it is a webpage.
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To
i need to say something like
if $username = "" then ...
where "" is literally nothing. i want to match it ONLY if the variable is
totally empty.
this is my first experience with regex so what should this be?
--
Matthew Harrison
Internet/Network Services Administrator
Pean
have the
script write to a file somewhere and then a (root) cronjob parse it and add
the account to the system.
Now i have no idea how to start doin this so could someone point me in the
right direction.
cheers guys.
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter
what do i have to do to make changes to a form like change the background
colour of a text field or the face of a button? is it in perl or what?
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
gi_course/appendices/appendix1.html#D
>
> > -Original Message-
> > From: Matthew Harrison [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 12, 2002 10:42 AM
> > To: [EMAIL PROTECTED]
> > Subject: nearly got the cookies
> >
> >
> > I have
->value;
print header();
print <
hello people, hope you like your prefs.
END_OF_HTML
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ve to put to actually set the cookie instead of
just defining it?
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ttings itself.
>
> - Original Message -----
> From: "Matthew Harrison" <[EMAIL PROTECTED]>
> To: "Polikarpov Cyrill" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 12, 2002 12:02 AM
> Subject: Re: setting and
re is an option in browser settingd to ask. Check Your
> privacy settings.
> Shall work :)
>
>
> - Original Message -
> From: "Matthew Harrison" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 11, 2002 11:42 PM
> Subject:
my browser is set to ask if i want to accept
a cookie, but it doesn't ask.
TIA
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ng anything else. The content type is the MIME type.
> Common MIME types are "text/html" for HTML and "text/plain" for text.
>
> Hope that helps.
>
> Rob
>
> -Original Message-
> From: Matthew Harrison [mailto:[EMAIL PROTECTED]]
> Sent: Monday, M
I am just starting to learn perl and am reading about cgi.pm
I have read about creating an appropriate header and using the start_html
line, but can someone please give me an example of their html inside a script?
TIA
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter
22 matches
Mail list logo