Go Back  HTML Forums - Free Webmaster Forums and Help Forums > SERVER ADMINISTRATION > Windows Administration
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 08-14-2009, 01:48 PM
  #1
MatthewAnders
Aspirant (Level 2)
 
Join Date: Mar 2009
Posts: 11
iTrader: (0)
MatthewAnders is an unknown quantity at this point
XAMPP confusion

Hi all,

Im not sure if this is the proper place to post this but I am having problems on my test server(which is my local box). Im using it to practice my PHP and SQL.
the problem i have is when i try to pass a variable through a form.

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

</form>
that goes over to hiuser.php
which is
Code:
<h1>Hi User</h1>
<h3>PHP program that receives a value from "whatsName"</h3>

<?php

$userName = $_REQUEST["userName"];
 
 print "<h3>Hi there, $userName!</h3>";
?>
When i load it to my live server, which is hosted, it works 5x.

Do i have something messed up in my php.ini? register_globals = off.
and under xampp where do i fix it?


Thanks!
Matty
MatthewAnders is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 04:32 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.