[PHP] php: else if problem

2005-03-22 Thread Leonidas Savvides
to: 'php-general@lists.php.net'
 
from: Leonidas Savvides
 
 
Please see my problem below in PHP code :
  _  

?php
  echo $month, $day, $year, $month2, $day2, $year2;// these are
ok-normal values from web form 
  if ( ! @checkdate($month,$day,$year) ) {
   echo this operate till here;  // include_once
(normaldays.php);   @  //   wrongpickupdate.htm
  } else if ( ! @checkdate($month2,$day2,$year2) ) {
   include_once (wrongdropoffdate.htm); 
  } else if ( $tsp  $tsnow ) {   //  $tsp=time stamp
pickup date
   include_once (wrongpickupdate.htm); // include_once
(normaldays.php); //   wrongpickupdate.htm
  } else if ( $tsp = $tsd ) {   //  $tsd=time stamp drop
off date
   include_once (wrongpickupdate.htm); 
  } else if ( $days = 60 ) {   //  $days var come from
$tsd  $tsp
   include_once (manydays.htm);
  } else if ( $days = 2 ) {
   include_once (fewdays.htm);
  } else {
   include_once (normaldays.php); 
  }
 
?
  _  

problem
 
1.  executes first statement what ever vars are 
2.  if no ! to  first statement , executes second statement 
3.  if no ! to  first  second  statement, executes first
include_once() statement meaning :  
} else if ( $tsp  $tsnow ) {
include_once (wrongpickupdate.htm); 
}
whatever values of  $tsp  $tsnow are .
 
well WHERE THE PROBLEM IS ?
*mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
*
http://us.f610.mail.yahoo.com/ym/[EMAIL PROTECTED]
[EMAIL PROTECTED]
*   Leonidas Savvides
 


RE: [PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-19 Thread Leonidas Savvides
If is easy please answer and this : when be online AND OPEN A FILE FROM
A WEB LOCATION HOST - MINE WITH NOTEPAD may after I modify it, save it
again to my hosting space WITHOUT save it to my PC first ? Please note
that I mean using NotePad and I mean entering the host usernamepassword
when OPEN / SAVE ...? ATTENTION: I DO NOT MEAN SAVE IT TO MY HDD FIRST
AND AFTER UPLOAD IT !!! Please tell me the same[as for NotePad] but for
Dreamweaver MX ?
[EMAIL PROTECTED] 
-Original Message-
From: Forest Liu [mailto:[EMAIL PROTECTED] 
Sent: 18 March 2005 11:51
To: Leonidas Savvides
Cc: php-general@lists.php.net; [EMAIL PROTECTED]; sony-only;
[EMAIL PROTECTED]
Subject: Re: [PHP] How from an html/web form I may go to a php script
output(of form values)

I donot know what happened in Frontpage. I just use Dreamweaver to
design the page layout, and then UltraEdit to add php code.

I think you are asking about the page submit. You can find the exact
example in the php manual, which can be obtained from php.net

a.php:
form method=post action=b.php
  input name=usrinfo value=Input your info here
  input type=submit
/form

b.php:
echo your input just now is:.$_POST[usrinfo];

it will work.

On Fri, 18 Mar 2005 10:38:45 +0200, Leonidas Savvides
[EMAIL PROTECTED] wrote:
 How from an html/web form I may go to a php script output(of form
 values) ? I mean the programming for the result :
 
 A visitor to webpage-A.php when press submit of a webform go to a
 webpage-B.php where as a php script uses the previous form data , and
 for example there's output of these data the exactly words the visitor
 enters ?
 
 May this done in MS-FrontPage2002 ?
 
 THE SCRIPT IN MS-FrontPage2002 HTML MODE NO EXECUTED BUT IS LIKE NO
 EXIST , UNLIKE THE CODE HAS ALREADY SCRIPT COLOR IN HTML MODE OF
 FRONTPAGE AND ALSO PHP SCRIPT FILE NAME xxx.php IS IN THE WEB FORM
 PROPERTIES ? ... I INSERT PHP SCRIPT IN SCRIPT . /SCRIPT TAGS
?
 AND ALSO I TRY DELETE PHP SCRIPT INSERTING ONLY ONE COMMAND THE:
 Script
 echo this operate till here;
 /Script
 BUT AGAIN THE SAME RESULT  ?
 After press SUBMIT the php script file shows in address bar and all
 viewed area is white (nothing on screen) ?
 
 Leonidas Savvides
 [EMAIL PROTECTED]
 
 


-- 
  Sincerely,
Forest Liu(?)

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



[PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Leonidas Savvides
WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?
I want to know if when be online I CAN OPEN A FILE FROM A WEB LOCATION
HOST - MINE and after I modify it save it again to my hosting space
WITHOUT save it to my PC first using NotePad and I mean entering the
host usernamepassword when OPEN / SAVE ...? ATTENTION: I DO NOT MEAN
SAVE IT TO MY HDD FIRST AND AFTER UPLOAD IT !!! TELL ME THIS SAMELY FOR
Dreamweaver MX ?
[EMAIL PROTECTED]



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



[suspicious - maybe spam] RE: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad / Dreamweaver MX ? YES/NO ?

2005-03-19 Thread Leonidas Savvides
WORK WITH PHP FILES REMOTELY WITH NotePad / Dreamweaver MX ? YES/NO ?
I want to know if when be online I CAN OPEN A PHP FILE FROM A WEB
LOCATION HOST - MINE and after I modify it save it again to my hosting
space WITHOUT save it to my PC first, using NotePad and I mean entering
the host usernamepassword when OPEN or SAVE ...? ATTENTION: I DO NOT
MEAN SAVE IT TO MY HDD FIRST AND AFTER UPLOAD IT !!! TELL ME THIS SAMELY
FOR Dreamweaver MX ?
[EMAIL PROTECTED] 

-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED] 
Sent: 20 March 2005 01:29
To: Leonidas Savvides
Cc: php-general@lists.php.net
Subject: Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

Leonidas Savvides wrote:
  ATTENTION: I DO NOT MEAN
 SAVE IT TO MY HDD FIRST AND AFTER UPLOAD IT !!! TELL ME THIS SAMELY
FOR
 Dreamweaver MX ?

Not in PHP. It's a client side trick (done with machine and/or OS 
specific code). Even Web-based Documentum (eRooms) uses a staging 
directory on the users HDD before invoking the correct program. Works 
well with custom COM objects on the PC side integrated with MSIE, barely

and very error-prone with any other browser.

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



[PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-18 Thread Leonidas Savvides
How from an html/web form I may go to a php script output(of form
values) ? I mean the programming for the result : 
 
A visitor to webpage-A.php when press submit of a webform go to a
webpage-B.php where as a php script uses the previous form data , and
for example there's output of these data the exactly words the visitor
enters ? 
 
May this done in MS-FrontPage2002 ? 
 
THE SCRIPT IN MS-FrontPage2002 HTML MODE NO EXECUTED BUT IS LIKE NO
EXIST , UNLIKE THE CODE HAS ALREADY SCRIPT COLOR IN HTML MODE OF
FRONTPAGE AND ALSO PHP SCRIPT FILE NAME xxx.php IS IN THE WEB FORM
PROPERTIES ? ... I INSERT PHP SCRIPT IN SCRIPT . /SCRIPT TAGS ?
AND ALSO I TRY DELETE PHP SCRIPT INSERTING ONLY ONE COMMAND THE: 
Script 
echo this operate till here; 
/Script 
BUT AGAIN THE SAME RESULT  ? 
After press SUBMIT the php script file shows in address bar and all
viewed area is white (nothing on screen) ? 
 
Leonidas Savvides 
[EMAIL PROTECTED]