login system

2002-04-13 Thread Matthew Harrison
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

Sendmail form-things

2002-04-06 Thread Matthew Harrison
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]

Dowload script

2002-04-04 Thread Matthew Harrison
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?

Re: use of Mail::Sendmail

2002-03-27 Thread Matthew Harrison
forgot to attach the script didn't i. oh well, here it is: ###

use of Mail::Sendmail

2002-03-27 Thread Matthew Harrison
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]

my first regex i think

2002-03-22 Thread Matthew Harrison
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

Re: callin subs

2002-03-22 Thread Matthew Harrison
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

re: callin subs

2002-03-22 Thread Matthew Harrison
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

Re: last questions for my webmail script.

2002-03-21 Thread Matthew Harrison
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

last questions for my webmail script.

2002-03-21 Thread Matthew Harrison
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]

existing username

2002-03-20 Thread Matthew Harrison
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

first glimpse of regex

2002-03-19 Thread Matthew Harrison
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

webmail systems

2002-03-18 Thread Matthew Harrison
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

customising forms

2002-03-15 Thread Matthew Harrison
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

Re: nearly got the cookies // debugging suggestion

2002-03-12 Thread Matthew Harrison
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

nearly got the cookies

2002-03-12 Thread Matthew Harrison
->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]

cookies

2002-03-11 Thread Matthew Harrison
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]

Re: setting and retrieving cookies

2002-03-11 Thread Matthew Harrison
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: setting and retrieving cookies

2002-03-11 Thread Matthew Harrison
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:

setting and retrieving cookies

2002-03-11 Thread Matthew Harrison
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]

Re: html in a cgi script

2002-03-11 Thread Matthew Harrison
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

html in a cgi script

2002-03-11 Thread Matthew Harrison
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