p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: RES: php and html


Message #1 by "Rodrigo Penloski - Som Livre.com" <Rodrigo@s...> on Tue, 29 Oct 2002 11:47:32 -0300
Dou you have the registerGlobals turned "on" in the php.ini file??

-----Mensagem original-----
De: Savich [mailto:savich_chop@h...]
Enviada em: ter=E7a-feira, 29 de outubro de 2002 10:50
Para: beginning php
Assunto: [beginning_php] php and html


 Hi, 
I can not collect information in a html-FORM and with php get this 
information afeterwards (page 77 in "Beginning PHP4" book...). Html fil

is OK when I click on Submit Query, but php-fil did not display the 
contents of the variable $Author ? I use apache 1.3.26 and php 4.2.2 and

I do not have a problem with run my php scripts...Is it something with 
apache that I must configure to be able to use html + php ? 
Grateful for any help... 
Savich 
 
 
*************** html fil ********************* 
<html> 
<head></head> 
<body> 
 
<FORM METHOD=3DGET ACTION=3D"text.php"> 
 
Who is your favourite author? 
 
<INPUT NAME=3D"Author" TYPE=3D"TEXT"> 
<br> 
<br> 
<INPUT TYPE=3DSUBMIT> 
 
</FORM> 
</body> 
</html> 
 
************ php fil ***********************' 
<html> 
<head></head> 
<body> 
 
My favourite author is: 
 
<?php 
echo $Author; 
?> 
</body> 
</html>  


  Return to Index