[PHP] Re: PHP post data

2006-04-06 Thread SLaVKa

John Taylor-Johnston wrote:

Scrolling back and forward through my PHP generated search engine,
my browser (FF) alerts to remind me that I have post data.
What kind of header can I add to avoid it doing that?
Else what is the problem?
John

Try using GET

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



Re: [PHP] post data

2004-06-15 Thread John Nichel
eoghan wrote:
hi,
im posting a form to itself... and im wondering if there is any
way to clear the post data from the page after if have dealt with it?
to stop page refreshes posting the data again?
thanks
eoghan
unset ( $_POST );
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] post data

2004-06-15 Thread Larry E . Ullman
im posting a form to itself... and im wondering if there is any
way to clear the post data from the page after if have dealt with it?
$_POST = array();
Larry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] post data?

2003-06-09 Thread esctoday.com | Wouter van Vliet
What does your form tag look like?

-Oorspronkelijk bericht-
Van: HPS [mailto:[EMAIL PROTECTED]
Verzonden: maandag 9 juni 2003 9:32
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] post data?


Dear all,

i am using PHP 4.2.2 with Red Hat 8.0
i had a form in form.php, which has a form like this
input class=text type=text name=course_id size=10 maxlength=10
value=
say, i enter 6 in the text box.

After i click the submit button and i echo the value of course_id, it
returned 6course_id=6, NOT 6
do you have any idea?


thx a lot!
HPS



-- 
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] post data?

2003-06-09 Thread HPS
the form tag is
form action=syn2.php method=post onSubmit=return checkform(this);

Thx!
HPS



Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 What does your form tag look like?

 -Oorspronkelijk bericht-
 Van: HPS [mailto:[EMAIL PROTECTED]
 Verzonden: maandag 9 juni 2003 9:32
 Aan: [EMAIL PROTECTED]
 Onderwerp: [PHP] post data?


 Dear all,

 i am using PHP 4.2.2 with Red Hat 8.0
 i had a form in form.php, which has a form like this
 input class=text type=text name=course_id size=10 maxlength=10
 value=
 say, i enter 6 in the text box.

 After i click the submit button and i echo the value of course_id, it
 returned 6course_id=6, NOT 6
 do you have any idea?


 thx a lot!
 HPS



 --
 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] post data?

2003-06-09 Thread esctoday.com | Wouter van Vliet
in that case,.. I guess something is going wrong in your checkform
javascript function .. probably you attach the name and value (by mistake)
to eachother in there 

-Oorspronkelijk bericht-
Van: HPS [mailto:[EMAIL PROTECTED]
Verzonden: maandag 9 juni 2003 12:16
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] post data?


the form tag is
form action=syn2.php method=post onSubmit=return checkform(this);

Thx!
HPS



Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 What does your form tag look like?

 -Oorspronkelijk bericht-
 Van: HPS [mailto:[EMAIL PROTECTED]
 Verzonden: maandag 9 juni 2003 9:32
 Aan: [EMAIL PROTECTED]
 Onderwerp: [PHP] post data?


 Dear all,

 i am using PHP 4.2.2 with Red Hat 8.0
 i had a form in form.php, which has a form like this
 input class=text type=text name=course_id size=10 maxlength=10
 value=
 say, i enter 6 in the text box.

 After i click the submit button and i echo the value of course_id, it
 returned 6course_id=6, NOT 6
 do you have any idea?


 thx a lot!
 HPS



 --
 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



RE: [PHP] post data?

2003-06-09 Thread John W. Holmes
It's an Apache2 / PHP bug. Upgrade to the latest versions of each
(although Apache2 and PHP are still not recommended). 

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

 -Original Message-
 From: esctoday.com | Wouter van Vliet [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 09, 2003 7:21 AM
 To: HPS; [EMAIL PROTECTED]
 Subject: RE: [PHP] post data?
 
 in that case,.. I guess something is going wrong in your checkform
 javascript function .. probably you attach the name and value (by
mistake)
 to eachother in there 
 
 -Oorspronkelijk bericht-
 Van: HPS [mailto:[EMAIL PROTECTED]
 Verzonden: maandag 9 juni 2003 12:16
 Aan: [EMAIL PROTECTED]
 Onderwerp: Re: [PHP] post data?
 
 
 the form tag is
 form action=syn2.php method=post onSubmit=return
checkform(this);
 
 Thx!
 HPS
 
 
 
 Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] wrote in
message
 news:[EMAIL PROTECTED]
  What does your form tag look like?
 
  -Oorspronkelijk bericht-
  Van: HPS [mailto:[EMAIL PROTECTED]
  Verzonden: maandag 9 juni 2003 9:32
  Aan: [EMAIL PROTECTED]
  Onderwerp: [PHP] post data?
 
 
  Dear all,
 
  i am using PHP 4.2.2 with Red Hat 8.0
  i had a form in form.php, which has a form like this
  input class=text type=text name=course_id size=10 maxlength=10
  value=
  say, i enter 6 in the text box.
 
  After i click the submit button and i echo the value of course_id,
it
  returned 6course_id=6, NOT 6
  do you have any idea?
 
 
  thx a lot!
  HPS
 
 
 
  --
  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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] post data?

2003-06-09 Thread Billy
wouter,

the checkform should be alright, coz i had been using Redhat 7.2+apache 1.3
+ php 4.1.2 for a year and the program is working very good

thx a lot!
HPS


Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] ???
news:[EMAIL PROTECTED] ???...
 in that case,.. I guess something is going wrong in your checkform
 javascript function .. probably you attach the name and value (by mistake)
 to eachother in there 

 -Oorspronkelijk bericht-
 Van: HPS [mailto:[EMAIL PROTECTED]
 Verzonden: maandag 9 juni 2003 12:16
 Aan: [EMAIL PROTECTED]
 Onderwerp: Re: [PHP] post data?


 the form tag is
 form action=syn2.php method=post onSubmit=return checkform(this);

 Thx!
 HPS



 Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  What does your form tag look like?
 
  -Oorspronkelijk bericht-
  Van: HPS [mailto:[EMAIL PROTECTED]
  Verzonden: maandag 9 juni 2003 9:32
  Aan: [EMAIL PROTECTED]
  Onderwerp: [PHP] post data?
 
 
  Dear all,
 
  i am using PHP 4.2.2 with Red Hat 8.0
  i had a form in form.php, which has a form like this
  input class=text type=text name=course_id size=10 maxlength=10
  value=
  say, i enter 6 in the text box.
 
  After i click the submit button and i echo the value of course_id, it
  returned 6course_id=6, NOT 6
  do you have any idea?
 
 
  thx a lot!
  HPS
 
 
 
  --
  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



Re: [PHP] post data?

2003-06-09 Thread Billy
Thx a lot John.

Red Hat 8.0 is bundled with Apache 2 + php 4.2
if i needed to use Red Hat 8.0, except upgrading both program to the latest
version  (which as u saidnot recommended) ,   any other combination of
apache + php do u recommend?

thx a lot!
HPS


John W. Holmes [EMAIL PROTECTED] ???
news:[EMAIL PROTECTED] ???...
 It's an Apache2 / PHP bug. Upgrade to the latest versions of each
 (although Apache2 and PHP are still not recommended).

 ---John W. Holmes...

 Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

 PHP Architect - A monthly magazine for PHP Professionals. Get your copy
 today. http://www.phparch.com/

  -Original Message-
  From: esctoday.com | Wouter van Vliet [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 09, 2003 7:21 AM
  To: HPS; [EMAIL PROTECTED]
  Subject: RE: [PHP] post data?
 
  in that case,.. I guess something is going wrong in your checkform
  javascript function .. probably you attach the name and value (by
 mistake)
  to eachother in there 
 
  -Oorspronkelijk bericht-
  Van: HPS [mailto:[EMAIL PROTECTED]
  Verzonden: maandag 9 juni 2003 12:16
  Aan: [EMAIL PROTECTED]
  Onderwerp: Re: [PHP] post data?
 
 
  the form tag is
  form action=syn2.php method=post onSubmit=return
 checkform(this);
 
  Thx!
  HPS
 
 
 
  Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] wrote in
 message
  news:[EMAIL PROTECTED]
   What does your form tag look like?
  
   -Oorspronkelijk bericht-
   Van: HPS [mailto:[EMAIL PROTECTED]
   Verzonden: maandag 9 juni 2003 9:32
   Aan: [EMAIL PROTECTED]
   Onderwerp: [PHP] post data?
  
  
   Dear all,
  
   i am using PHP 4.2.2 with Red Hat 8.0
   i had a form in form.php, which has a form like this
   input class=text type=text name=course_id size=10 maxlength=10
   value=
   say, i enter 6 in the text box.
  
   After i click the submit button and i echo the value of course_id,
 it
   returned 6course_id=6, NOT 6
   do you have any idea?
  
  
   thx a lot!
   HPS
  
  
  
   --
   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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
Apache-1.3.x with whatever version of PHP you want.

-Rasmus

On Tue, 10 Jun 2003, Billy wrote:

 Thx a lot John.

 Red Hat 8.0 is bundled with Apache 2 + php 4.2
 if i needed to use Red Hat 8.0, except upgrading both program to the latest
 version  (which as u saidnot recommended) ,   any other combination of
 apache + php do u recommend?

 thx a lot!
 HPS


 John W. Holmes [EMAIL PROTECTED] ???
 news:[EMAIL PROTECTED] ???...
  It's an Apache2 / PHP bug. Upgrade to the latest versions of each
  (although Apache2 and PHP are still not recommended).
 
  ---John W. Holmes...
 
  Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
 
  PHP Architect - A monthly magazine for PHP Professionals. Get your copy
  today. http://www.phparch.com/
 
   -Original Message-
   From: esctoday.com | Wouter van Vliet [mailto:[EMAIL PROTECTED]
   Sent: Monday, June 09, 2003 7:21 AM
   To: HPS; [EMAIL PROTECTED]
   Subject: RE: [PHP] post data?
  
   in that case,.. I guess something is going wrong in your checkform
   javascript function .. probably you attach the name and value (by
  mistake)
   to eachother in there 
  
   -Oorspronkelijk bericht-
   Van: HPS [mailto:[EMAIL PROTECTED]
   Verzonden: maandag 9 juni 2003 12:16
   Aan: [EMAIL PROTECTED]
   Onderwerp: Re: [PHP] post data?
  
  
   the form tag is
   form action=syn2.php method=post onSubmit=return
  checkform(this);
  
   Thx!
   HPS
  
  
  
   Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] wrote in
  message
   news:[EMAIL PROTECTED]
What does your form tag look like?
   
-Oorspronkelijk bericht-
Van: HPS [mailto:[EMAIL PROTECTED]
Verzonden: maandag 9 juni 2003 9:32
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] post data?
   
   
Dear all,
   
i am using PHP 4.2.2 with Red Hat 8.0
i had a form in form.php, which has a form like this
input class=text type=text name=course_id size=10 maxlength=10
value=
say, i enter 6 in the text box.
   
After i click the submit button and i echo the value of course_id,
  it
returned 6course_id=6, NOT 6
do you have any idea?
   
   
thx a lot!
HPS
   
   
   
--
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 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] post data?

2003-06-09 Thread Rasmus Lerdorf
On Mon, 9 Jun 2003, Michael A Smith wrote:
 Get Apache 1.3.27 (I think). and PHP. Follow the instructions on the PHP
 site! I found that those are the only one's I could get to work. Any PHP
 version using --with-apxs=/usr/local/apache I couldn't get to work. Also
 take a look at what you'll need first and make sure you know what to
 compile with!

You have to specify the full path to the apxs script.  ie.
--with-apxs=/usr/local/apache/bin/apxs or wherever it is.

-Rasmus

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



Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
Well, this is how millions of people build PHP.  It works pretty well.

-Rasmus

On Mon, 9 Jun 2003, Michael A Smith wrote:

 Yes I know, but I've never been able to get it to work. I just followed
 the instructions on the PHP site.

 -Michael
 On Mon, 2003-06-09 at 10:34, Rasmus Lerdorf wrote:
  On Mon, 9 Jun 2003, Michael A Smith wrote:
   Get Apache 1.3.27 (I think). and PHP. Follow the instructions on the PHP
   site! I found that those are the only one's I could get to work. Any PHP
   version using --with-apxs=/usr/local/apache I couldn't get to work. Also
   take a look at what you'll need first and make sure you know what to
   compile with!
 
  You have to specify the full path to the apxs script.  ie.
  --with-apxs=/usr/local/apache/bin/apxs or wherever it is.
 
  -Rasmus


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



Re: [PHP] POST data

2002-12-03 Thread Ernest E Vogelsinger
At 23:47 03.12.2002, Brian Duke said:
[snip]
Can someone tell me how I can access data from a POST? I don't mean
the variables because the data I'm getting doesn't have any. I have a
client that is doing a simple HTTP Post to a server and appending xml
data right after the header. I need access to the xml blob.
[snip] 

Not sure if this gives you the posted data, but you could try
$_SERVER['QUERY_STRING']. Or simply print_r the $_SERVER array to check if
it is available.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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




RE: [PHP] POST data

2002-12-03 Thread John W. Holmes
 Can someone tell me how I can access data from a POST? I don't mean
 the variables because the data I'm getting doesn't have any. I have a
 client that is doing a simple HTTP Post to a server and appending xml
 data right after the header. I need access to the xml blob.

In php.ini, there is this setting:


; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = On


It's off by default. You could turn it on and then use that variable to
get all of the data, possibly. I think it would be
$GLOBALS['HTTP_RAW_POST_DATA']  with register globals off?

Search the PHP site for more info on it.

---John Holmes...



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