GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Jan-2004, 12:09
shrdlu shrdlu is offline
New Member
 
Join Date: Jan 2004
Posts: 3
shrdlu is on a distinguished road

Not finding POST variables


I just installed Apache 1.3.23 in Windows 98. My php script works on a remote server, but the form variables seem to get lost when I run locally.

Here's the relevant html fragment:

<form name="form1" method="post" action="index.php">
<table width="48%" border="1" cellpadding="3" cellspacing="0" bordercolor="#0000FF" bgcolor="#FFFFFF">
<tr>
<td>User Name</td>
<td><input type="text" name="enteredUserID"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="enteredPasswd"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>

When I run it remotely (supported by 5dollarhosting.com) it remembers $enteredUserID. When I run it locally, it doesn't.

I'm very new to this, and will appreciate any help.
  #2  
Old 22-Jan-2004, 14:28
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello shrdlu,

There are a few things you can do, but I will suggest just 2 in the order of preference:

1. Re-write your codes to refer to form variables like $_POST['enteredUserID'] instead of $enteredUserID

2. Look for the php.ini file on your local PC, open it with NotePad or WordPad, edit the value for (change it to "On") :

register_globals = On

If your remote server is using an older version of PHP i.e. versions less than 4.1, I suggest you stick to suggestion No.2.
  #3  
Old 22-Jan-2004, 18:50
shrdlu shrdlu is offline
New Member
 
Join Date: Jan 2004
Posts: 3
shrdlu is on a distinguished road
Using $_POST worked. Thanks!!
 
 

Recent GIDBlogInstall Adobe Flash - Without Administrator Rights by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Linux] Finding a runaway or locked program JdS Computer Software Forum - Linux 2 21-Jan-2004 15:00
Apache on Windows XP and passing variables Jos Elkink Apache Web Server Forum 4 21-Nov-2003 02:21
PHP variables nniehoff MySQL / PHP Forum 7 26-Jul-2002 06:25

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:40.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.