Re: [PHP] Sorry! Help needed!

2001-01-23 Thread Tim McGuire

I think you are asking if you can use client side JavaScript to handle a form.

www.irt.org has some good examples of this in their JavaScript FAQ section.

Try http://developer.irt.org/script/form.htm#10.3 
for "Interactions between forms in different frames or windows"

>>> Anna <[EMAIL PROTECTED]> 01/23/01 06:13AM >>>
Sorry for it isnt PHP related, but maybe someone can answer or point where 
to look

I have some disagreement with one person about method="post"... Is this 
possible and good use as action html files: for example - > process form 
data to other page via html...

Cant find answer nowhere... always are only server side form handler...

AnnA


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
To contact the list administrators, e-mail: [EMAIL PROTECTED] 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Day of Week??

2001-03-14 Thread Tim McGuire

from manual at www.php.net:

  $today = getdate(); 
   $weekday = $today[weekday];
echo $weekday;

if it is another date

   $thedate = getdate(mktime (0,0,0,(0,0,0,1,1,1998));
$weekday = $thedate[weekday];
   echo $weekday;

Tim 



>>> Bruno Freire <[EMAIL PROTECTED]> 03/14/01 07:53AM >>>
Hi It's me again!
Bruno...From Brazil...

Hi wanna know How can i take the day of week of aany date...

Example:

How to know that 14 of march of 2001 is a Wednesday??

Thanks...
Bruno.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Day of Week??

2001-03-14 Thread Tim McGuire

Sorry There was a typo in last post:
SHOULD BE:
from manual at www.php.net:

  $today = getdate(); 
   $weekday = $today[weekday];
echo $weekday;

if it is another date

   $thedate = getdate(mktime (0,0,0,1,1,1998));
$weekday = $thedate[weekday];
   echo $weekday;

Tim 

>>> "Tim McGuire" <[EMAIL PROTECTED]> 03/14/01 08:10AM >>>
from manual at www.php.net: 

  $today = getdate(); 
   $weekday = $today[weekday];
echo $weekday;

if it is another date

   $thedate = getdate(mktime (0,0,0,(0,0,0,1,1,1998));
$weekday = $thedate[weekday];
   echo $weekday;

Tim 



>>> Bruno Freire <[EMAIL PROTECTED]> 03/14/01 07:53AM >>>
Hi It's me again!
Bruno...From Brazil...

Hi wanna know How can i take the day of week of aany date...

Example:

How to know that 14 of march of 2001 is a Wednesday??

Thanks...
Bruno.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
To contact the list administrators, e-mail: [EMAIL PROTECTED] 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] TAB = ENTER ????

2001-03-14 Thread Tim McGuire

Check out  
http://developer.irt.org/script/471.htm 

it is a document titled 
"How can I simulate the tab key when the enter key is pressed?"

>>> Marcel Henrique Scandolara - Wide <[EMAIL PROTECTED]> 03/14/01 08:38AM >>>
Please,

As I make to make keyboard key  to function equal keyboard key


Thanks

Marcel Henrique
from Brazil


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
To contact the list administrators, e-mail: [EMAIL PROTECTED] 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] About php

2001-03-28 Thread Tim McGuire

Here is a post from a few months ago that has an idea about your question:
Tim
__
Quick answer: Nothing, if it works.

Which browser supports it?


Anthony

-Original Message-
From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 28, 2000 11:40 AM
To: Anthony Martin
Cc: '[EMAIL PROTECTED]' 
Subject: Re: [PHP] Great javascript function


On Thu, 28 Dec 2000, Anthony Martin wrote:

> Ever use associative arrays to name a form element?
>
>   
>
> Ever try to use that name with javascript?
>
>   alert ( document.myform.doThis['foo'].value ) ;
>
> It doesn't work.  Or at least, I don't see how it would.  The brackets are
>

Quick question: What's wrong with document.myform["dothis[foo]"].value?


>>> vishak tomy <[EMAIL PROTECTED]> 03/28/01 04:39AM >>>
Hello,
I have a doubt about multi select from drop down, if i set it as
 then how could I check it for javascript
validation. for this select, If any alternative for this please inform
me.

Vishak


Get free email and a permanent address at http://www.netaddress.com/?N=1 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
To contact the list administrators, e-mail: [EMAIL PROTECTED] 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] list of included file names

2001-06-19 Thread Tim McGuire

Hi,

I searched the archives for this.

For debugging purposes, I want to see a list of the included files on a page in HTML 
comments.

PHP_SELF and HTTP_SERVER_VARS["SCRIPT FILENAME"] only returns the name + path of the 
file calling the included files.

I want each included file to contribute its name to the page.  Is there any way to do 
that so that the source looks like this:


[PHP] List of included file names.

2001-06-20 Thread Tim McGuire

Hi,

I searched the archives for this.

For debugging purposes, I want to see a list of the included files on a page in HTML 
comments.

PHP_SELF and HTTP_SERVER_VARS["SCRIPT FILENAME"] only returns the name + path of the 
file calling the included files.

I want each included file to contribute its name to the page.  Is there any way to do 
that so that the HTML source looks like this:


Re: [PHP] Php Files on Browser

2001-06-26 Thread Tim McGuire

Hi Ted,
There is an installer available for free that will painlessly install apache, php, and 
mysql on your windows system.
Good tool for trying out stuff locally or hosting an intranet application on a windows 
box.
PHPTriad available from www.phpgeek.com 
Can't praise it enough.

Tim McGuire
Programmer Analyst
Minnesota Department of Natural Resources


>>> Ted Shaw <[EMAIL PROTECTED]> 06/24/01 01:21PM >>>
G'day -

Sorry for this stupid question but I'm a newby trying to install php on my
win98 computer and find that neither netscape nor IE 5.5 won't open php
files that are located on my c: drive but will access php files on the net.
There must be a simple explanation. 

Any help greatly appreciated...

Ted Shaw


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
To contact the list administrators, e-mail: [EMAIL PROTECTED] 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Forms with Field Arrays and JavaScript

2001-05-02 Thread Tim McGuire

For IE 5 and NN 4.7 at least,
I made it work like this:

for(var i = 0;i
etc.
It works well 




>>> "Diego Fulgueira" <[EMAIL PROTECTED]> 05/02/01 09:14AM >>>
After several tries, I am convinced there is no way to do it. I went around
the problem by using dinamic field names (var1, var2, var3, etc) and then
reading them using $HTTP_POST_VARS["var".$i], where $i would be your former
index to the array. For example:

The form coud have HTML code like this:





Each field can be referenced by JavaScript code like this:

document.myform.myvar1.value="hello";

Or dynamically like this:

myfield=new array();
for(i=0;;i++)


if(!eval("document.myform.myvar"+i)) break;
myfield[i]=eval("document.myform.myvar"+i);
}
myfield[1].value="hello";

When the form is submitted, asuming, method=POST, then you get the field
values like this:

$myvars=array();
for($i=0;;$i++)
{
if(empty($HTTP_POST_VARS["myvar".$i]) break;
$myvars[$i]=$HTTP_POST_VARS["myvar".$i];
}

Hope it helps.
Cheers, Diego.
  -Original Message-
  From: Utopia [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, 01 May, 2001 10:32 PM
  To: [EMAIL PROTECTED] 
  Subject: Re: [PHP] Forms with Field Arrays and JavaScript


  Hello,

  I see you sent this back in January. I'm having the very same problem.

  Could you PEEEAAASSEEE tell me how to assign a value to the
'myfields[]' text field using JavaScript. I can't make it happen.


  Thanks.

  Tiffany
  
  THIS WAS YOUR MESSAGE ON THE BOARD
  Hi! I was wondering if someone knows, or can think of a way to go around
  this problem i have.


  The thing is i am working with a form with a field array. Each field is
  something like:
  


  When i receive the posted data, I can access the "myfields" array. This is
  fine.


  The problem is within my form i have client JavaScript code to validate
the
  form data. But I can't make reference to a form object called myfields[]
or
  myfields[5] or just myfields. The property name of the javascript object
is
  set to "myfields[]", but reference to myfields[][5] or
  document.myform.fields["myfields[]"] doesn't work either.


  Any suggestions will be greatly appreciated.
  Thanks in advance.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Twin Cities PHP Users Group meeting

2001-05-07 Thread Tim McGuire

The next meeting of the Twin Cities PHP users group is coming:
Wednesday, May 9
7:00 PM
Downtown St. Paul
Check www.tcphp.org 
for directions and minutes from previous meetings


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Tim McGuire


Yes,  I find I have to do this a lot if I have
multiple rows in a form and I want to do anything with
javascript.
I use commands like this:
document.formname["the_checkbox[9]"].checked = true
and if you needed to stick a variable in the index:

theform["the_checkbox["+the_index+"]"].checked = true;

So on yours I think it would be like this:
document.formname["arraystuff["+inputfield+"]"].focus
or



Tim McGuire
Minnesota
"The only time I ever run is when I light a roach bomb
in my apartment"

--- Daniel James <[EMAIL PROTECTED]> wrote:
> Hi everyone :)
> 
> imagine this if you will..
> 
> 
>onload="document.formname.inputfield.focus()">
> 
>   
> 
>   
> 
> 
> ugly form with a text input field that is focussed
> when the form loads,
> erm.. nice.
> 
> now, I like to put all my form stuff into
> associative arrays, makes things
> a lot nicer when I am doing things later... but
> this... means something
> completely different to javascript:
> 
> 
>   
onload="document.formname.arraystuff[inputfield].focus()">
> 
>name="arraystuff[inputfield]">
> 
>   
> 
> 
> and like that the text field won't focus and the
> parser tells me that
> arraystuff has no properties and that inputfield is
> undefined.
> 
> I've tried all sorts of stuff, at the moment when I
> do a form I choose
> between javascript and associative arrays, depending
> on what I need... but
> I *want* both >;-) 
> 
> anyone have any ideas? I keep getting errors myself.
> 
> Twigman...
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]