[nyphp-talk] PHPAuction Software

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
Good Morning, Yesterday I purchased the GPL version of PHPAuction. http://www.phpauction.net/gpl.php After installing it I fixed a few small bugs that were preventing me from accessing different parts of the site. Anyways, yeah, sucks right? Unfortunately the script that enables a user to pos

[nyphp-talk] http basic auth suddenly not working

2007-06-06 Thread Michael Southwell
A host I use recently upgraded to PHP 5.2.0, running on Apache 1.3.37, and suddenly a perfectly functioning HTTP Basic Authentication is not working, presumably because PHP is no longer returning $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'], or at least not returning them correctly. Th

[nyphp-talk] PHP a Toy?

2007-06-06 Thread Hans Zaunere
Hi all, While some may think PHP is a toy, there may be some merit to that now. In cooperation with Vincent Pontier, the PHP elephant designer, Damien Seguy has developed a plush toy. Details are at the end of this message. It depends on how many we order, but we're looking at a price of about

Re: [nyphp-talk] PHP a Toy?

2007-06-06 Thread Mitch Pirtle
On 6/6/07, Hans Zaunere <[EMAIL PROTECTED]> wrote: Hi all, While some may think PHP is a toy, there may be some merit to that now. So why is "PHP" on a PostgreSQL elephant? *spacemonkey cackles like a witch ___ New York PHP Community Talk Mailing L

[nyphp-talk] A Form That Builds Itself

2007-06-06 Thread Nelly Yusupova
Hello Everyone, I am trying to create a page where users can upload images to the server via a form. I wanted to offer 5 input fields and an option that says "click + to add another image", to allow the user to upload as many images as they want. Does anyone know how I can achieve this? Thank

Re: [nyphp-talk] A Form That Builds Itself

2007-06-06 Thread CED
Asunchronous JAvascript that writes to a Div, and you run a loop intot hat div of form input elements incremented by each click. HTH, Ed Edward JS Prevost II [EMAIL PROTECTED] www.EdwardPrevost.info - Original Message - From: Nelly Yusupova To: 'NYPHP Talk' Sent: Wednesday, Jun

Re: [nyphp-talk] PHP a Toy?

2007-06-06 Thread CED
Hans, I'd like to buy a few. Edward JS Prevost II AlbanyPHP Founder [EMAIL PROTECTED] www.AlbanyPHP.org - Original Message - From: "Hans Zaunere" <[EMAIL PROTECTED]> To: "'NYPHP Talk'" Sent: Wednesday, June 06, 2007 12:16 PM Subject: [nyphp-talk] PHP a Toy? > > Hi all, > > While some

Re: [nyphp-talk] A Form That Builds Itself

2007-06-06 Thread Patrick May
You don't actually need to use ajax and talk to the server, just some javascript DOM code to insert another input field. On Jun 6, 2007, at 8:28 PM, CED wrote: Asunchronous JAvascript that writes to a Div, and you run a loop intot hat div of form input elements incremented by each click.

Re: [nyphp-talk] A Form That Builds Itself

2007-06-06 Thread CED
yeah, that too. Anything referencing the div. I'm just ajax happy, go XOAD!... Ignore me. Edward JS Prevost II [EMAIL PROTECTED] www.EdwardPrevost.info - Original Message - From: "Patrick May" <[EMAIL PROTECTED]> To: "NYPHP Talk" Sent: Wednesday, June 06, 2007 8:33 PM Subject: Re: [ny

[nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
Hello, This is more of a JS question, but I'm going to ask it anyways. I just got the book, "Pro Javascript Techniques" (Apress) and what sucks is that many of the examples do not work. What I want to do is have to input boxes, a username and password. Instead of having labels next to them suc

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
I usually do something like the following to clear the value. Keep in mind that when the type is set to password your text will always display masked. DiRN function clearText (el) { if (el.defaultValue == el.value) el.value = ""; } From: [EMAIL PROTECTED] [mailto:[EM

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
Set the text as the value, then set it blank onFocus... onFocus(javascript:document.f.inputfield.value = ""); and onBlur(javascript:document.form.inputfield.value ="Username";); -Ed Edward JS Prevost II [EMAIL PROTECTED] www.EdwardPrevost.info - Original Message - From: Ben Sgro (Pro

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Nelly Yusupova
Here is working example... Sincerely, Nelly Yusupova http://www.digitalwoman.com _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro (ProjectSkyline) Sent: Wednesday, June 06, 2007 8:44 PM To: NYPHP Talk Subject: [nyphp-talk] Remov

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
Hello, Yeah, I just hacked up this: . "" . "" What im trying to do is turn that type to a password..so I can see the text...is that possible. - Ben Ben Sgro, Chief Engineer ProjectSkyLine - Defining New Horizons - Original Message - From: Andy Dirnberger

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
Don't forget to wrap teh onBlur to check if they entered something different. - Original Message - From: CED To: NYPHP Talk Sent: Wednesday, June 06, 2007 8:48 PM Subject: Re: [nyphp-talk] Removing Text from an Input Box Set the text as the value, then set it blank onFocus.

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
is a bit more complete. Or can replace empty values with your label. function clearText (el) { if (el.defaultValue == el.value) el.value = ""; } function restoreText (el) { if (el.value == "") el.value = el.defaultValue; } From: [EMAIL PROTECTED] [mailto:[EMAI

Re: [nyphp-talk] http basic auth suddenly not working

2007-06-06 Thread Jiju Thomas Mathew
try print_r(get_defined_vars()) and see if you can identify the _SERVER key to use.. if it is changed.. On 6/6/07, Michael Southwell <[EMAIL PROTECTED]> wrote: A host I use recently upgraded to PHP 5.2.0, running on Apache 1.3.37, and suddenly a perfectly functioning HTTP Basic Authentication

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
I think this will work in some browsers, but not all. I believe to accomplish this in IE you'd have to completely replace the with . From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro (ProjectSkyline) Sent: Wednesday, June 06, 2007 8:54 PM To: NYPHP Talk Subject: Re: [nyp

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro (ProjectSkyline) What im trying to do is turn that type to a password..so I can see the text...is that possible. Yes it is possible to change a field type to text and then back to password

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Patrick May
Now your passwords are screen-visible function clearField(id, value) { if (id.value == value) { id.value = ""; } } function restoreField(id, value) { if (id.value == "") { id.value = value; } } On Jun 6, 2007, at 8:44 PM, Ben Sgro ((ProjectSkyline)) wrote: Hello, T

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
Andy's two functions cover it all, just make a third function that sets type. Although I'm not sure if changing the fields type will reveal the characters or not, it should. - Original Message - From: Andy Dirnberger To: 'NYPHP Talk' Sent: Wednesday, June 06, 2007 8:53 PM Su

Re: [nyphp-talk] A Form That Builds Itself

2007-06-06 Thread David Krings
CED wrote: yeah, that too. Anything referencing the div. I'm just ajax happy, go XOAD!... Ignore me. Or if you don't know how to get around with AJAX or such, have the users upload the image files as a zip archive. Depenging on which images you want to allow, adding a few .bmp files may qui

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
Is the defaultValue property cross-browser (and platform)? Mark _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Dirnberger Sent: Wednesday, June 06, 2007 8:54 PM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Removing Text from an Input Box is a bit more complete.

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
Something along these lines should work. function swapOut (container_id, field_name) { var el = document.getElementById (container_id); el.innerHTML = ""; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Armendariz Sent: Wednesday, June 06

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
At present I only have IE and FF installed and it works in both of those. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Armendariz Sent: Wednesday, June 06, 2007 9:05 PM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Removing Text from an Input Box Is the defaultValue prop

Re: [nyphp-talk] PHP a Toy?

2007-06-06 Thread David Krings
Hans Zaunere wrote: Hi all, While some may think PHP is a toy, there may be some merit to that now. In cooperation with Vincent Pontier, the PHP elephant designer, Damien Seguy has developed a plush toy. Don't have the German TV station WDR catch them, they came up with a blue elephant in t

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
or... function clearField(id, value) { if (id.value == value) { id.value = ""; } } function restoreField(id, value) { if (id.value == "") { id.value = value; } if (id.type == "text" && id.id == "pwrd" && id.value != "Password"){ id.type = "password"; } else { id.

[nyphp-talk] Removing Text from an Input Box - Thanks!

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
Hello, Thanks for everyones response, it is much appreciated! I decided to work with the code provided by Andy Dirnberger, thank you. - Ben Ben Sgro, Chief Engineer ProjectSkyLine - Defining New Horizons ___ New York PHP Community Talk Mailing Li

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Rolan Yang
Ben Sgro (ProjectSkyline) wrote: Hello, Yeah, I just hacked up this: . "" . "onfocus=\"this.value=''\" onfocus=\"this.type='password'\">" What im trying to do is turn that type to a password..so I can see the text...is that possible. - Ben I'm not clear on wheth

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
Hello Rolan, Well, ideally, yes, but people can identify well enought with a Textbox stating: Username and one beneath it stating: ***. If they can't figure that out, they don't deserve accesss to the app. = ] Thanks for the code, I'll take a look. That's a neat little trick! - Ben Ben S

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
> > Ben Sgro (ProjectSkyline) wrote: > >> Hello, > >> Yeah, I just hacked up this: > >> . " onfocus=\"this.value=''\">" > >>. " >> onfocus=\"this.value=''\" onfocus=\"this.type='password'\">" > >> What im trying to do is turn that type to a password..so > I can see the