Jump to content

problems with php


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...