![]() |
|
#1
|
|||
|
|||
Not finding POST variablesI 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> </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
|
||||
|
||||
|
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. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
Using $_POST worked. Thanks!!
|
Recent GIDBlog
Toyota - 2008 September Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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