Re: [PHP] PHP and JavaScript on a validation NIGHTMARE

2002-10-01 Thread skitum

Use globals variables instead hidden fields. Maybe it works.

Peace & Love
skitum

- Original Message - 
From: "Riccardo Sepe" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 1:34 PM
Subject: [PHP] PHP and JavaScript on a validation NIGHTMARE


> Hi every1 I'm stucked with this page in which I would like to perform 
> some check before submit and in the meantime I need to be able to change 
> some content upon a choice at the top of the page.
> My first attempt was:
> The form has been submitted every time I change the option at the top of 
> the page ... PHP decides the content of the page..
> Javascript performs the checks and then submit the form.
> PHP has to recognise the status (I mean checked performed do the real 
> task) so I used an isset statement.
> The problem using "isset" is that PHP doesn't find the variable after 
> Javascript has performed its check
> If I use a hidden field then PHP doesn't understand when I'm asking to 
> change the content or actually sending the form for the real task.
> After this I said Javascript could manage the dinamically changing of 
> the content but I found out that Layer feature is not supported with 
> mozilla .
> Any clue ??
> 
> thanks a lot guys !
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Help with PHP and HTML

2002-09-26 Thread skitum

hey folks, don't forget quotes  ;o)



I use one like this:

and it works ok.

Peace & Love
skitum

- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "'Ken'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 1:46 PM
Subject: RE: [PHP] Help with PHP and HTML


> [snip]
> I have a HTML form that has a session variable called $cost. Now I want to
> set the value to this table data input field. Anyone know how this is
> accomplished?
>
> 
> [/snip]
>
>
> Ken,
>
> You question is not too clear, but I will try to help. You want the form
> element to reflect the value of $cost?
>
>  name="txtSubTotalAmount" size="40"
> readonly>
>
> I apologize if this is not what you are asking.
>
> Jay
>
> Errors have been made. Others will be blamed.
>
> *
> * Texas PHP Developers Conf  Spring 2003*
> * T Bar M Resort & Conference Center*
> * New Braunfels, Texas  *
> * Contact [EMAIL PROTECTED]   *
> *   *
> * Want to present a paper or workshop? Contact now! *
> *
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and JavaScript

2002-09-23 Thread skitum

Hi all,

The following code will drive me mad coz it always shows the JavaScript functions and 
I'd like know why:


  error_alert();
  goHistoryBack();
 

Thanks in advance

Peace & Love
skitum



[PHP] global variables or not??

2002-09-13 Thread skitum

Hi all,
Help me please. I need $vartwo1 have the same value that $varone1. Look:

function one(){
?>
 
 
 



[PHP] local and global variables

2002-09-12 Thread skitum

Hi all,

Maybe a stupid question, but i have to make it:
How can a local variable pass its value to a global one? 
Is it possible?

Thanks in advance.

Peace & Love
skitum



Re: [PHP] question

2002-09-04 Thread skitum

I'm not sure what do you want to do, but maybe this can help you:

if($a == $value && $b == $value)
{
//do something
}
elseif($a == $value && $b != $value)
{
//...
}
elseif($a != $value && $b == $value)
{
//...
}
else
{
//...
}

I hope this help

Peace & Love
skitum

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 4:26 PM
Subject: [PHP] question


> I have a php question.
>
> I would like to enter a "while" loop, but:
> I want it to be like this:
>
> when $a has a value, while $a...
> when $b has a value, while $b... (same statements as with $a)
> when $a has a value, and $b has a value, while $a and $b
>
> this is based on a search system in which the user can enter a, b or a and
> b.
>
> Can you help me with my problem, or help me find someone who can?!
>
> Thanks.
>
> Dore van Hoorn.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Uploading file

2002-09-04 Thread skitum

i have the same problem. Where is the kind soul who can help us?

Peace & Love
skitum

- Original Message -
From: "Clemson Chan" <[EMAIL PROTECTED]>
To: "Juan Pablo Aqueveque" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 12:25 AM
Subject: RE: [PHP] Uploading file


> Thanks Juan, and other listers,
>
> I have this example,
>
> 
> 
> Figure 7-3
> 
> 
>  //check for file upload
> if(isset($UploadedFile))
> {
> unlink($UploadedFile);
> print("Local File: $UploadedFile \n");
> print("Name: $UploadedFile_name \n");
> print("Size: $UploadedFile_size \n");
> print("Type: $UploadedFile_type \n");
> print("\n");
> }
> ?>
>  ACTION="7-3.php" METHOD="post">
> 
> 
> 
> 
>
> 
> 
>
> and the result is this after I uploaded a file
>
> Local File: /tmp/phpnYLV2J
> Name: 323lake.jpg
> Size: 48254
> Type: image/pjpeg
>
> But I couldn't find the uploaded file, nor the /tmp/phpnYLV2J path.
> Do I normally do a copy after the upload?
> Can I just change the tmp path and filename when I upload?
> Thanks.
>
> --Clemson
>
>
>
> -Original Message-
> From: Juan Pablo Aqueveque [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 7:58 AM
> To: Clemson Chan; [EMAIL PROTECTED]
> Subject: Re: [PHP] Uploading file
>
>
> Hi friend,
>
> http://www.php.net/manual/en/features.file-upload.php
> And take a look to the User Contributed Notes
>
> --jp
>
> At 13:03 03-09-2002 -0700, Clemson Chan wrote:
> >Hi, I am new to this group.
> >I am trying to figure out how to let people to upload image files to my
> >website.
> >My ISP is using PHP 3 (I believe).
> >If someone can give me simple example, that will be great.
> >Thanks.
> >
> >--Clemson
> >
> >How can I tell what version of PHP is running on the system (linux)?
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
> 
> Juan Pablo Aqueveque <[EMAIL PROTECTED]>
> Ingeniero de Sistemas
> Departamento de Redes y Comunicaciones http://www.drc.uct.cl
> Universidad Católica de Temuco.
> Tel:(5645) 205 630 Fax:(5645) 205 628
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>






> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] how get a image?

2002-09-04 Thread skitum

Hi all,

I have a input button like this:  
How can i get this image? I need to receive it as a attachment file or insert it into 
a MySQL database.

Any Ideas?
Thanks for help.

Peace & Love
skitum



[PHP] problems with cookies

2002-09-02 Thread skitum

Hi all,

I'm using a cookie like this: <> 
at the top of my script. <<$domin>> is a text field that belongs to a post form. This 
form is in <> well, i try use <<$domin>> in <> 
writing <<$_COOKIE['cookiename1'];>> Here you are the code:


--- HTML code ---

--- HTML code ---

--- HTML code ---

--- HTML code ---

--- HTML code ---

What am I doing wrong?  Any tips?  Any Ideas?
Thanks for help

Peace & Love
skitum



Re: [PHP] problem with include

2002-08-30 Thread skitum

The same problem with require

- Original Message -
From: "John Wards" <[EMAIL PROTECTED]>
To: "skitum" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 1:02 PM
Subject: Re: [PHP] problem with include


> hmm.
>
> It should have nothing to do with cookies unless you are using cookies in
> the scripts.
>
> Try using require rather than include to see if that makes any difference
>
> Cheers
> John Wards
> SportNetwork.net
> p.s. your english is as good as mine and i am scottish..
> - Original Message -
> From: "skitum" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 30, 2002 11:53 AM
> Subject: [PHP] problem with include
>
>
> Hi all,
>
> Look at this code:
>
> // one.php
> 
> --- html code ---
> // end file one.php
>
> // two.php
> 
> --- html code ---
> //end two.php
>
> well, when I see in my browser www.myweb.com/two.php this shows two.php
plus
> the include file in it "three.php", so this works ok, but when i see in my
> browser (IE 6.0) www.myweb.com/one.php this shows one.php plus two.php,
but
> not three.php that is include into two.php
>
> What am I doing wrong?
> Could be this because of cookies?
>
> Thanks for help
> Peace & Love
> skitum
>
> P.S. Forgive my bad english.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] problem with include

2002-08-30 Thread skitum

Hi all,

Look at this code:

// one.php

--- html code ---
// end file one.php

// two.php

--- html code ---
//end two.php

well, when I see in my browser www.myweb.com/two.php this shows two.php plus the 
include file in it "three.php", so this works ok, but when i see in my browser (IE 
6.0) www.myweb.com/one.php this shows one.php plus two.php, but not three.php that is 
include into two.php

What am I doing wrong?
Could be this because of cookies?

Thanks for help
Peace & Love
skitum

P.S. Forgive my bad english.