Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebServer with PHP4 Problems.

Status
Not open for further replies.

arios2mx

Technical User
Dec 23, 2002
60
0
0
MX
Hi!
I installed Apache,mysql,mod_php4 from Suse 8.2 Pro installation discs.
I have the following files:

****text.html***
<html>
<head></head>
<body>
<form method=get action=&quot;text.php&quot;>
Who is your favourite author?
<input name=&quot;Author&quot; type=&quot;text&quot;>
<br>
<br>
<input type=submit>
</form>
</body>
</html>
****text.html****

****text.php****
<htmL>
<head></Head>
<body>
Your favourite author is:
<?php
echo $Author;
?>
</body>
</html>
*****text.php****

I requested process of this file using I wrote my favorite's author then I press enter, I got the following:
Inside the address bar:

Inside the browser:
Your favourite author is:

I ran phpinfo(); it is working
I create:
$text=text;
echo $text;

inside text.php file it works.

Where is the problem? I am using this from a NFS'ed directory, I chowm 0777 it, I was using root accout, I ran it from w3m from the server.

Nothing!!!


Thanks

Alex
 
It would be interesting to see what the fix was. I was going to guess a globals variable scope situation. Did you enable globals, or do a $GET['Author']?

----
JBR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top