[PHP] php/html debug

2002-11-08 Thread Anna Gyor
Hi,

is there any software on the market with I can test my html/php based web
portal? I mean for example the data flow between html forms and php
files/scripts. For Example a login form on html site and a check with an
other php site and I want begin the test on the html site and check weather
the right values goes to the php script.

Thanks!



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




[PHP] PHP debugger

2002-10-04 Thread Anna Gyor

Hello,

is there any application with I can test my php-based web site? I know Zend
Studio and PHPEdit but I can't use them if any variable comes from an other
html site.

(For example in logging there are loginname and password as html variable
and the debugger don't see them and the script doesn't works.)

Thanks!



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




[PHP] Global variables

2002-10-02 Thread Anna Gyor

Hello,

how can I use global variables in my web portal? I have read the php
documentation, but it works only in the same file.
I want use more global variable on many php site.

For example:
In login.php I use the code

 $first=mysql_result($result,0,FIRST_NAME);

and I want to print this $first variable all of my php site.


Thanks!



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




[PHP] Call HTML from php

2002-10-01 Thread Anna Gyor

Hi,

how can I call a html site from my php script? I want to redirect the user
to different html site depends on the php script result.

Thanks!




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




Re: [PHP] Call HTML from php

2002-10-01 Thread Anna Gyor

First thanks a lot, but

I have the following code:

?
$database=PH;
mysql_connect(localhost,test,test);
@mysql_select_db($database);
$query = SELECT ph_user.FIRST_NAME, FROM ph_user  WHERE (ph_user.FIRST_NAME
= \test\  );
$result=mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
if ($num  0){ Header(Location: file://c:/Test/company.html); }
else { Header(Location: file://c:/Test/register.html); }
?

And I become an error message:

Warning: Cannot add header information - headers already sent by (output
started at C:\Program Files\Apache Group\Apache2\htdocs\redirect.php:3) in
C:\Program Files\Apache Group\Apache2\htdocs\redirect.php on line 11

What can I do?

Thanks!


John Wards [EMAIL PROTECTED] az alábbiakat írta a következo
hírüzenetben: [EMAIL PROTECTED]
 header(location:http://yourstuff;);

 Do this before any output to the user. eg echos or displaying html

 John
 - Original Message -
 From: Anna Gyor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 01, 2002 8:40 PM
 Subject: [PHP] Call HTML from php


  Hi,
 
  how can I call a html site from my php script? I want to redirect the
user
  to different html site depends on the php script result.
 
  Thanks!
 
 
 
 
  --
  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] Call HTML from php

2002-10-01 Thread Anna Gyor

I hev deleted the row:
$num=mysql_num_rows($result);
which generates an error message (the output, what you said)  and now the
script works!

Thanks!


John Wards [EMAIL PROTECTED] az alábbiakat írta a következo
hírüzenetben: [EMAIL PROTECTED]
 what is on line 3?

 is the ? tag online 1?

 - Original Message -
 From: Anna Gyor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 01, 2002 9:35 PM
 Subject: Re: [PHP] Call HTML from php


  First thanks a lot, but
 
  I have the following code:
 
  ?
  $database=PH;
  mysql_connect(localhost,test,test);
  @mysql_select_db($database);
  $query = SELECT ph_user.FIRST_NAME, FROM ph_user  WHERE
 (ph_user.FIRST_NAME
  = \test\  );
  $result=mysql_query($query);
  $num=mysql_num_rows($result);
  mysql_close();
  if ($num  0){ Header(Location: file://c:/Test/company.html); }
  else { Header(Location: file://c:/Test/register.html); }
  ?
 
  And I become an error message:
 
  Warning: Cannot add header information - headers already sent by (output
  started at C:\Program Files\Apache Group\Apache2\htdocs\redirect.php:3)
in
  C:\Program Files\Apache Group\Apache2\htdocs\redirect.php on line 11
 
  What can I do?
 
  Thanks!
 
 
  John Wards [EMAIL PROTECTED] az alábbiakat írta a következo
  hírüzenetben: [EMAIL PROTECTED]
   header(location:http://yourstuff;);
  
   Do this before any output to the user. eg echos or displaying html
  
   John
   - Original Message -
   From: Anna Gyor [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, October 01, 2002 8:40 PM
   Subject: [PHP] Call HTML from php
  
  
Hi,
   
how can I call a html site from my php script? I want to redirect
the
  user
to different html site depends on the php script result.
   
Thanks!
   
   
   
   
--
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] html input and php (newbie)

2002-09-24 Thread Anna Gyor

Hi,

I just began to learn php and I have te following code. How can I get the
input field value in the php script? Because my script doesn't work.
$UserName is always an empty string.

?php
if ($submit == click){
  echo Hello, $UserName;
}
else{
?
  htmlbody

  form method=post action=input.php3

  Enter Your Name
  input type=text name=UserName/inputbr

  input type=submit name=submit value=click/input
  ? echo Hello, $UserName;  ?
  /form

  /body/html
?
}

?



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