[PHP] Re: Upload script with user admin

2002-02-01 Thread Lerp
I forgot to add the security at the top of that code I sent. Upon a successful login you might want to create a session variable to signify that they are logged in. At the top of the pages you want to be secure from 'other' users just do a test at the top to check to see if that variable was set.

[PHP] Re: Upload script with user admin

2002-02-01 Thread Will Hives
That's cool. How do you then delete and edit that image? Will in article [EMAIL PROTECTED], Lerp at [EMAIL PROTECTED] wrote on 2/1/2002 5:07 PM: Hi there, here's a bit of code to get you started. It includes a form that allows uploads, and the code to process the upload on the

[PHP] Re: Upload script with user admin

2002-02-01 Thread Lerp
Deleting and editing is accomplished by selecting out of the db the appropriate record. So if you had a page that looped through 35 (for example) records, and each record had a link that was created (a class='link_black_02' href='deletephotoconfirm.php?photoid=$photoid' . delete . /a) -- use the

[PHP] Re: Upload script with user admin

2002-02-01 Thread Joe Van Meer
I forgot to mention that all of the pics in my small app are renamed and are only 5 digits in length. So I always know I can count on the substr() and 5 digits/characters. Your situation is more than likely different than mine own, and you'll have to adjust the extraction of the file name to suit