Board index   FAQ   Search  
Register  Login
Board index php forum :: Bar Free time

Help-Php only displays blank paper & the code itself...

Bar discussions . Talk about everything not only php !. Guests are welcome here , forum registration is not required.

Moderators: macek, egami, gesf

Help-Php only displays blank paper & the code itself...

Postby peaceofcrap2001 » Fri Jan 16, 2004 9:33 am

Hey,
I am just getting started with PHP. I have installed PHP 4.3.4 and Apache 1.3.2 on my win 98. The apache server is running fine and http://localhost/phptest.php (which chontains <? phpinfo() ?> ) is working.

here is my problem... I wrote another simple php code (hello.php)and saved it in my web directory.

here is the "hello.php"

<?
echo "hello world";
?>

I typed on the address bar "http://localhost/hello.php". It is running, but displays just a white blank window.

I wrote another one integrating the php code in html form.

here is the html form
<form method = "post" action = "sendmail.php">
Email: <input name = "email" Type = "text"/> <br/>
Message: <br/>
<textarea name= "message" cols= "60" rows = "20"></textarea><br/>
<input Value = "submit" type= "submit"/>
</form>

here is "sendmail.php"

<?
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];

mail( "peaceofcrap2001@yahoo.com", "request for information", $message, "From: $email" );
header("location: http://www.yahoo.com");
?>

And this one displays the php code itself. So, I was wondering if anybody could help me out!

Thank you for your time
peaceofcrap2001
New php-forum User
New php-forum User
 
Posts: 6
Joined: Wed Jan 14, 2004 9:13 pm

Postby swirlee » Fri Jan 16, 2004 11:29 am

Don't cross post!

You've posted this topic in 4 different forums. That's three too many. Posting the same question more than once won't get it answered faster -- in fact, the more times you post it, the more likely it is that nobody will want to answer it. Please stop.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby sigix » Sat Jan 17, 2004 3:51 am

what's going on swirlee,
what this person wants :roll:
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Re: Help-Php only displays blank paper & the code itself

Postby WiZARD » Sat Jan 17, 2004 6:19 am

your php not working or working not correctly see Installation part of this forum
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to Free time

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron