Jump to content

Recommended Posts

Posted

Ok. evertime I try to view this PHP page in my browser i only see the code.

 

HTML code(this display just fine):

<HTML>
<HEAD>
<Title>user data</TITLE>
</HEAD>
<BODY>
<!-- File userdat.html -->
<FORM METHOD="POST" ACTION="userdat.php">
<H2>Contact List</H2>
<BR>Nickname:
<BR><INPUT TYPE="TEXT" Name="Nickname">
<BR>
<BR>Full Name:
<BR><INPUT TYPE="TEXT" NAME="Fullname">
<BR>
<BR>Memo:
<BR><TEXTAREA NAME="Memo" ROWS="4" COLS="40" WRAP="PHYSICAL">
</TEXTAREA>
<BR>
<BR>
<INPUT TYPE="SUBMIT">
</FORM>
</BODY>

I submit the info

 

PHP code(this is where it shows only code):

<?php
echo "<BR>Nickname=$Nickname";
echo "<BR>Fullname=$Fullname";
echo "<BR>Memo=$Memo";
?>

 

Did I do something wrong? Filenames are userdat.html, and userdat.php

Posted

Did you try uploading these files on a server and then trying or did you try just like that on your pc. You could also get a server testing program from the internet. Hope I solved your problem.

Php files do not function properly without server programs running so you can't view what the file really displays just on your pc.

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...