Log In User always fails even when i know that the mysql database is registering the login informati
ok here is my issue. im setting up a login page for my site. i have my other pages restriced to access without the session validated. i register a test user and when i input the info into the correct fields it redirects back on itself and says accessdenied. i know the registration page is updating my mysql tables but it wont let me log in. also right after i create the server side behaviour i get a syntax error on line 2 and exclamation points next to Log In User plus log in user shows up twice in the behaviours panel. below is the form and php script
<?php
@@UrlFormat@@('Connections/tonyreaper.php');
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$FF_LoginAction = $PHP_SELF;
if (isset($QUERY_STRING) && $QUERY_STRING!="") $FF_LoginAction .= "?".$QUERY_STRING;
if (isset($user_name)) {
$FF_valUsername=$user_name;
$FF_fldUserAuthorization="";
$FF_redirectLoginSuccess="index.php";
$FF_redirectLoginFailed="login.php";
$FF_rsUser_Source="SELECT user_name, password ";
if ($FF_fldUserAuthorization != "") $FF_rsUser_Source .= "," . $FF_fldUserAuthorization;
$FF_rsUser_Source .= " FROM users WHERE user_name='" . $FF_valUsername . "' AND password='" . $password . "'";
mysql_select_db($database_tonyreaper, $tonyreaper);
$FF_rsUser=mysql_query($FF_rsUser_Source, $tonyreaper) or die(mysql_error());
$row_FF_rsUser = mysql_fetch_assoc($FF_rsUser);
if(mysql_num_rows($FF_rsUser) > 0) {
// username and password match - this is a valid user
$MM_Username=$FF_valUsername;
session_register("MM_Username");
if ($FF_fldUserAuthorization != "") {
$MM_UserAuthorization=$row_FF_rsUser[$FF_fldUserAuthorization];
} else {
$MM_UserAuthorization="";
session_register("MM_UserAuthorization");
if (isset($accessdenied) && false) {
$FF_redirectLoginSuccess = $accessdenied;
mysql_free_result($FF_rsUser);
session_register("FF_login_failed");
$FF_login_failed = false;
header ("Location: $FF_redirectLoginSuccess");
exit;
mysql_free_result($FF_rsUser);
session_register("FF_login_failed");
$FF_login_failed = true;
header ("Location: $FF_redirectLoginFailed");
exit;
?>
<form action="<?php echo $FF_LoginAction?>" id="form1" name="form1" method="POST">
<p> </p>
<table width="200" border="0">
<tr>
<td>Username:</td>
<td><label for="user_name"></label>
<input type="text" name="user_name" id="user_name" /></td>
</tr>
<tr>
<td>Password:</td>
<td><span id="sprypassword1">
<label for="password"></label>
<input type="password" name="password" id="password" />
<span class="passwordRequiredMsg">A value is required.</span><span class="passwordInvalidStrengthMsg">The password must have at least 5 letters and 1 number.</span></span></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="submit" id="submit" value="Log In" /></td>
</tr>
</table>
<p> </p>
</form>
im really trying to get this fixed but i am at an utter loss
The $user_name has not been set, thus the login will always fail.
Have a look this example http://forums.adobe.com/message/3795422#3795422 where I have used
if (isset($_POST['user_name'])) {
Gramps
Similar Messages
-
I am a web app developer using Windows XP. I work a alot in Javascript and depend on the error console to help debug my code.
I upgraded several times since version 3.6, when E.C. still worked. not sure when it stopped, but certainly by version 8.
Are there certain ports it uses that might be getting interferred with?
Any ideas would be most helpful.Does the Web Console show those error or is that failing as well?
*Web Developer > Web Console (Shift+Ctrl+K)
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Firefox are already aware that Firefox 5 and Google toolbar won't work together yet I am continually being asked to install Firefox 5, each time I take the 'ask me later' option only to be asked again.
So when is the problem going to be fixed?Google needs to update the Google Toolbar program for Firefox 5.0.
The Google Toolbar '''7.1.20110512W''' version does work pretty good in Firefox 5.0 by using the Compatibility Reporter extension. But not every feature works 100%.<br />
https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
http://googlesystem.blogspot.com/2011/06/enable-google-toolbar-in-firefox-5.html -
The title says it all ...
I had to reinstall Win 7 and PS CS5, and the updates fail even when opened using 'run-as-admin'. Why?If you are using Help 》updates, it is outdated. You can however go to Product Updates on the Adobe.com website and download your updates there. I am not at my desk b<t when I get back, I'll get the links unless someone else can do that sooner.
-
Skype always online even when I'm offline
My Skype account is always connected even when all my devices are turned off.
What can be the problem?
Solved!
Go to Solution.Try the /showplaces and /remotelogout chat commands.
http://community.skype.com/t5/Windows-desktop-client/Skype-shows-me-online-though-I-am-not-connected...
See also this on how Skype is trying now to "resolve" this issue:
http://community.skype.com/t5/News-and-Announcements/Changes-to-your-Skype-online-status/ba-p/363782... -
I am at starbucks and when I try to download my free music on itunes, my password is always rejected, even when i am forced to create a new one!!! what am I doing wrong, who do I ask for help?
Due to recent security issues and identify theft (mostly due to phishing scams), the iTunes Store seems to be requiring more frequent verification of credit card information when a card is registered in your account, even if you have a balance from a prepaid card. Either just go through the verification process or, if you have a credit card entered and you don't expect to need the card anytime soon, go into the Payment information in your account and set the payment method to "none" which should then stop the regular requirements for verification (it may still ask - mine does - but you should just be able to click through the buttons without problems).
Hope this helps. -
I recently noticed that the light on the magnetic connection to my charger for my laptop is always on even when it isn't connected to the computer. I keep it plugged in. I don't remember it being like that in the past so I'm wondering if something is wrong.
Last sentence in the paper suggested by DALE:
Additional Information
Whether your product is in or out of warranty, you can take your adapter to an Apple Authorized Service Provider or Apple Retail Store for evaluation and replacement if necessary. Pending the results of the evaluation, you may or may not be eligible for a replacement adapter free of charge. Signs of accidental damage would negate any coverage. Be sure to bring in the computer used with the adapter; it is required to process potential adapter replacements. -
Airport Express 2nd WAN Port light always on, even when nothing is connected.
My Airport Express 2nd WAN Port light always on, even when nothing is connected.
Is this normal? The Airport utility also said that I didn't connect anything to the port - when there is a lan cable connected from the main Airport Extreme.
The computer can connect to the WiFi from the Airport Express properly, but with blinking yellow and no internet connection, also it cannot obtain the ip address.
After setting the Airport Express to the Bridge mode, the computer cannot access to the Airport Express anymore, with "Connection Time Out" error.
The Airport Express was 3 days old, and was working properly until today. There is also one blackout today because of the storm.
Had reset the Airport several times, didn't solve the problem.Hi again. That is a good idea. Check if router can grab an ip from your modem since wireless local connection through the router is working. If it can grab an ip and works fine on wireless, then you might have a problem with the ethernet ports. You might want to try assigning an ip address on the wired connection and see if ip of router is pingable. If really not working at all, possibility that router is not working properly anymore.
-
Why does my ipad always says CANNOT CONNECT TO ITUNES STORE even when i got all the internet connections needed?
Check to make sure you don't have your restrictions turned on, which may be preventing your access to iTunes.
Tap on the settings icon, then tap General, then check to see if you have restrictions turned to ON. If so turn it off. -
I paid for and downloaded a song, but it won't play saying the file could not be found. It says this even when I click on the song IN the itunes store, so I can't even listen to the sample now??
I haven't kept records of the songs I have paid for, and a number of songs have recently been displaying this message, making me search my computer for them. Most I have been able to find, but this one immediately "disappeared" the moment I attempted to play it after downloading...... how do I either get it back or get my money back???How did you do this move? Unless you know what you are doing you have to move the whole, complete iTunes folder.
iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
Quick answer if you use iTunes' default preferences settings: Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive. Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
Windows users see tip at: https://discussions.apple.com/message/18879381 -
Is it normal for someone to have general diffuculty charging an ipad? I see the "not charging" message even when I am using the charger and cord that came in the original box, plugged into a wall socket directly. It is normal for me to plug it in overnight and to see no charge whatsoever the next day. I have never had so much trouble using a friggin charger in my life. It just seems to be exceedingly finicky. What am I missing?
Charging your iPad should not be problematic. It should be an easy thing to do using the charger provided with your iPad connected to a known good wall outlet.
The charging problem you are experiencing is most like caused by:
1. A faulty charger
2. A faulty cable
3. A bad wall outlet
4. A problem in the iPad.
The first three of these are easiest to eliminate. Try a for ends charger and cable. Make absolutely sure your outlet is good. Try other outlets.
If the charger, cable and outlet a proven to be good then the problem lies in the iPad.
Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support. -
Does keeping a macbook pro plugged in even when fully charged damage the battery in any way?
Does keeping a macbook pro plugged in even when fully charged damage the battery?
no it will not, your battery stops charging when it reaches 100%. you can verify this if you'd like to through system report - power.
once in a while however, it's best to use it under it's own power and charge it back up once it's down to 75% to keep the battery in optimal condition. -
When opening the App Store a pop up window comes up and will not let me close it even when I touch outside the window
Close apps
1. Double tap the home button to bring up the multi-tasking view
2. Swipe the app's windows upwards to close
3. The app will fly off the screen
http://support.apple.com/kb/ht5137 -
hello, i need help i'm doing experiment on ilab i have managed to put my experiment on the platform but when i try to launch it fails with an error 404 that the page not found. any one with idea of what i should do to solve this problem. thank you
hey Sally,
Can you elaborate on the ilab and what you are trying to do? I have found this page to explain error 404, but I am not sure if it directly applies to you
http://digital.ni.com/public.nsf/allkb/D0998D3734926FA08625782300016E40?OpenDocument
Regards,
A. Zaatari
National Instruments
Applications Engineer -
Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.
Delete the current Firefox shortcut on the desktop and create a new desktop shortcut via the right-click context menu on the Firefox.exe program (Send to > Desktop)
Maybe you are looking for
-
Eraser doesn't work with my tablet, but it works in other programs
I have a Wacom tablet that I use with photoshop. I always have the button on the side set to eraser, so that I can easily switch tools by pressing on it. Recently this function has stopped working in Photoshop Elements. -I have already checked my tab
-
Import from a full database export having 5 .dmp files
i have a full database export having 5 .dmp files of 2g each, its having a user agvlc and which contains some partitioned tables,i imported the data for the user agvlc in a tablespace agvlc al the tables gets imported but the partitions are not getti
-
I set up a new PIN to lock my screen for security. Now I can't unlock it. Any idea how to undo this so I can use my phone again?
-
Can Aperture and iPhoto share library?
Is there a way they would be in harmony together? I need to keep the iPhoto usage around in my computer (that is where my whole library is) and also use Aperture..
-
The fan on my MacBook Pro came on out of no where and will not turn off. The computer is not heated nor are any applications running in the background. The seems to be going on full blast. Before now it worked fine. Would turn on or off when need. Pl