[PHP] Making $_POST and $_FILES play together nicely

2008-09-30 Thread Mike Potter
Hi, I have a PHP5 .class file that validates form inputs and sends notification emails from contact pages. Recently a client wanted to add a file upload function. No sweat, I thought. Well, I can't get the $_FILES portion to validate properly in my .class file, since it apparently only registers

Re: [PHP] Web page excerpt editor

2008-05-04 Thread Mike Potter
On Sun, May 4, 2008 at 5:49 PM, Robert Cummings wrote: > > Whereas, SnippetMaster *is* PHP-based. Sad if it's the only one, I > > thought (hoped) there would be more. > > When you can't find what you want, feel free to pick up you keyboard and > create the solution. Then be sure to share it wi

Re: [PHP] Web page excerpt editor

2008-05-04 Thread Mike Potter
Oops, I replied to Paul only. On Sun, May 4, 2008 at 11:46 AM, Paul Scott wrote: > FCKEditor, TinyMCE and a host of others. All JS based, so not really > relevant on a PHP list though Whereas, SnippetMaster *is* PHP-based. Sad if it's the only one, I thought (hoped) there would be more. Ski

[PHP] Web page excerpt editor

2008-05-04 Thread Mike Potter
We are looking for a script similar to SnippetMaster (http://www.snippetmaster.com/). We want to give the non-html-coding client the ability to make edits to one part of one page on their Web site on a weekly or near-daily basis. We are looking for something free and turnkey, so we can move on to t

[PHP] Framed & Linked Content

2008-01-29 Thread Mike Potter
There is JavaScript out there, to make a page break out of frames if someone else has your page in a frame of theirs. Is it possible to do this with PHP or is that the wrong side of Server/Client-side operations? Related, when target files are PDF's, images, or other than .php/.htm(l), does PHP pr

Re: [PHP] password hashing and crypt()

2008-01-21 Thread Mike Potter
My apologies Robert, Gmail sucks. I'm bouncing this back to the list, where it belonged in the first place. Feel free to make corrections if I've mischaracterized what you wrote. Good luck with that, btw, but don't expect me to engage. Robert Cummings wrote: >>> And THAT does remind me of my MUD

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-02-01 Thread Mike Potter
to something like: > > name="DeleteIDs[]" > > This will make it an array, and you can access all the elements like > > $_POST['DeleteIDs'][0] > > etc. > > > > (This should really be in a FAQ somewhere...) > > -- tracy > > On 1/31/03 11

[PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Mike Potter
Is it possible to pass an group of input boxes of the same name, then get the values of all the checked boxes or filled out textboxes? How do I get ALL the IDs passed. Right now it only passes the last ID. Do I really have to give them all unique names? For example... Jon Smith David C

[PHP] Allowing . in $_POST variable

2003-01-28 Thread Mike Potter
Hi all: I filled a bug today that quickly got resolved invalid, but I think it deserves another look. I had a bit of a problem today with "." getting converted to "_" for my variable names automatically. I have been told that this was because if you have register_globals on, then you can't ha

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-22 Thread Mike Potter
Sorry, that message it what is in the body of the response, so it's not working, I think. Unless that's what it's supposed to do. In that case, it won't work for what I want. I simply want the form to send to the php file, which then processes the information, and redirects the user to the next

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
tall instructions. > > http://www.php.net/manual/en/install.iis.php > > Regards, > Jason k Larson > > > Mike Potter wrote: > > > Do you know how do do this? > > > > Thanks, > > Mike > > > > > > "Jason K Larson" wrote in me

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
I tried a test file with this, and the form is sent, and the nph-test2.php file returns this Status: 302 Content-type: text/html X-Powered-By: PHP/4.3.0 Location: test.php Set-Cookie: testcookie=test Here is my code: Thanks for your time. Mike "Michael Sims" <[EMAIL PROTECTED]> wrote in me

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
Do you know how do do this? Thanks, Mike "Jason K Larson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Discussion on this list has suggested that it can work if PHP is set to > run as ISAPI, not CGI. > > HTH, >

[PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
HELP! I know I'm new at this so please don't laugh. But I can't get this to work! I am using Microsoft IIS with the latest PHP installed. Here's a smple: . . . setcookie("testCookie", "testValue", time() + 3600, "/"); header("Location: http://newpage.php";); exit; Later, I pull the cookie: ech

[PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Mike Potter
3 (3,0)1 (1, 3)2 Does anyone have any code, or any hints on how to go about this? I've worked on it for a few hours, and am really stuck. Thanks, Mike Mike Potter OEone Corp. http://www.oeone.com -- PHP General Mailing List (http://w