View Single Post
  #1 (permalink)  
Old 06-27-2007, 12:04 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon13 PHP Setup & Configuration - HELP!!!

Ok, I have no clue why all of these happen... I really do need help from Gurus in PHP and ASP.NET I'm not sure to what exactly wrong.. I'm pretty sure that there's nothing wrong with my code, but it doesn't print the name as I expected it's suppose to be...

form.php
PHP Code:
<html>
<
head>
<
title>What's your name?</title>
</head>
<body>
<h1>What'
s your name?</h1>
<
h3>Writing a form for user input</h3>
<
form method "post"
      
action "process.php">
Please type your name:
<
input type "text"
       
name "userName"
       
value "">
<
br>
<
input type "submit">

</
form>
</
body>
</
html
process.php
PHP Code:
<html>
<head>
<title>Hi User</title>
</head>
<body>
<h1>Hi User</h1>
<h3>PHP program that receives a value from "whatsName"</h3>

<?php

  
print "<h3>Hi there, $userName!</h3>";

?>
My output:
Code:
Hi User
PHP program that receives a value from "whatsName"
Hi there, !
$userName is suppose to be right after space in front of the coma... I'm not sure why is this happened? In fact, it happened when I tried ASP.NET too in my laptop. (My latop doesn't have XAMPP installed, however, I installed both XAMPP and .NET Framework 2.0 in this PC..) So that shouldn't be a problem right? I'm dying..............

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote