[PHP] hi everyone

2005-11-30 Thread EasyHorpak.com
Why this list very quiet?.
No one in this list.


Please feel free to reply to this email if you have additional questions or 
concerns

ชวน จุดาบุตร 
01-7499093
ติดต่อลงโฆษณา อพาร์ทเมนท์, แมนชั่น, หอพัก โทร. 01-749-9093, 02-938-8301

http://www.EasyHorpak.com - แหล่งค้นหาหอพัก, คอนโด, ที่พัก, อพาร์ทเมนท์ 
http://www.EasyHorpak.com/webdesign - บริการดูแลและออกแบบเว็บไซต์
http://www.EasyHorpak.com/internet - 
แหล่งรวมผู้ให้บริการติดตั้งอินเตอร์เน็ตในอพาร์ทเมนท์ 
http://www.EasyHorpak.com/software - แหล่งรวมโปรแกรมสำหรับอพาร์ทเมนท์ 
http://www.EasyHorpak.com/move - แหล่งรวมผู้ให้บริการขนย้าย
http://www.EasyHorpak.com/coin - แหล่งรวมผู้ให้บริการตู้หยอดเหรียญ


Re: [PHP] Using POST to pass variables

2005-11-30 Thread EasyHorpak.com

use $_POST[btnSend];  to use post method





- Original Message - 
From: Todd Cary [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, December 01, 2005 11:50 AM
Subject: [PHP] Using POST to pass variables


When I have more than one button on a page, I us what I call a reentrant 
approach.  That is the page calls itself.


If the page is emailer.pgp, the the FORM tag would be

form method=get action=emailer.php

At the top is

?php
  $send= $_GET[btnSend];  // Send button pressed
  $cancel  = $_GET[btnCancel];// Cancel is pressed
  $message = $_GET[message];
  if ($send) {
header(location: send.php?message= . $message);
  }
  if ($cancel) {
header(location: index.php);
  }
?

Is there a better way to do this so I can use a POST form?

Thank you...

Todd

--
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 won't work for me

2005-11-30 Thread EasyHorpak.com

Could you let me know your OS and Webserver program.
Did you use appserv for begin learn php?

- Original Message - 
From: Fil [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, December 01, 2005 11:58 AM
Subject: [PHP] $_POST won't work for me




Ladies and Gentlemen,

Thankyou for this opportunity of picking someones brains before I tear the 
place apart.  I am just starting with PHP but have encountered an 
insurmountable hurdle..  I need to work through   HTML form  posting 
examples to a PHP script.  ONE STEP after Hello World


I have taken the following steps:

1:   My php.ini   (The only one on the system ) is located in /etc/php.ini

Because I am using an above 4.1 version of PHP
I have manually altered the values of

register_globals = On

2: I have repeatedly stopped and restarted Apache webserver.
(Version 2)

3.  I have a Hello World HTML -  hello.php  that loads and runs 
succesfully hence I have a valid   Webserver PHP HTML connection with my 
browser.


4. In Hello World I have taken the liberty of including a  phpinfo()

5. The output of phpinfo()  among others reveals:

post_max_size 8M 8M
precision 14 14
register_argc_argv On On
register_globals On On
safe_mode Off Off

5. I should   be able to use GLOBALS  ( even if this will become a
health hazard later on)


6. I have used the two examples from PHP's Documentation.

Literally cut and paste...

Action.html 


html
head
  meta content=text/html; charset=ISO-8859-1
 http-equiv=content-type
  titlefilsform/title
/head
body
div style=text-align: center;span
 style=text-decoration: underline;Fils Formbr
br
br
/span
div style=text-align: left;
form action=action.php method=post Name: input name=name
 type=textbr

Email: input name=email type=textbr
  input name=submit value=Submit me! type=submit/form
br
span style=text-decoration: underline;/span/div
/div
/body
/html


and  action.php

html
head
  titlePHP Test/title
/head
body
HI ?php echo $_POST['name']; ?.
Your email ?php echo $_POST['email']; ?
/body
/html



7.  After submitting  action.html  action.php loads and prints

Hi
Your email

The contents of $_POST['name']  and $_POST['email']  appear to be 
unavailable to action.php. If I understand the documentation correctly 
this should not be the case  and whatever strings are filled in the form 
of action.html should now be available???


What or where or how or why or whatever ? must I do next... 

Many thanks for those interested in advance

Fil

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