Login page does not work
Hello
I developed the admin dashboard a simple for my project.
http://BHC.edu.in/BHCNET/admin/login.php
The login page works well in localhost. After the download on my site, the login page does not work.
It shows that the user name and password is incorrect. Kindly help me.
username : admin
password: admin
Here is my code.
<? PHP
session_start();
? >
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< title > Untitled Document < /title >
< / head >
< body >
< h1 align = "center" > welcome aboard the Admin! < / h1 >
< img src = "Images/Admin - icon.png" width = "200" height = "200" style = "float: left;" Display: block; "class ="admin">
< do action = "login.php" method = "post" name = 'loginform' id 'french' = > "
< table width = "278" height = '174' border = '0' >
< b >
< td width = "102" height = "59" > < label > user name: < / label > < table >
< td width = "187" > < input type = "text" name = "user name" placeholder = "Enter your name" / > < table >
< /tr >
< b >
< td = "46" height > < label > password: < / label > < table >
< td > < input type = "password" name = placeholder "password" = "Enter your password" / > < table >
< /tr >
< b >
< td = "37" height > < input type = "submit" name = "login_but" id = "login" value = "Login" / > < table >
< td > < p >
< input type = "reset" value = "Reset" name = "reset_but" id = "reset" / >
< /p > < table >
< /tr >
< /table >
< / make >
< / body >
< / html >
<? PHP
If (isset($_POST['login_but']))
{
$name = mysql_real_escape_string($_POST['username']);
$pass = mysql_real_escape_string($_POST['password']);
$encrypt = md5 ($pass);
include("include/Connection.php");
$query = "select * from users_login where name = '$name' and password = '$pass'"; "
$run_query = mysql_query ($query, $conn);
If (mysql_num_rows ($run_query) > 0)
{
$_SESSION ['username'] = $name;
echo 'window.open ('index.php', '_self') < script > < /script >';
}
on the other
{
echo "< script > alert ("user name or password is incorrect!") < /script > ';
}
}
? >
Kindly help me.
Thank you in advance.
There are two things that stand out immediately as incorrect:
- You call mysql_real_escape_string() before connecting to the database. The connection must come first.
- You use the original functions of PHP MySQL. They have been deprecated and do not work on several servers. Use MySQLi .
Tags: Dreamweaver
Similar Questions
-
Upgraded to v18 and default search home page does not work
I've just updated to Firefox 18 and my default Firefox start page does not work. I type in a Word and press 'enter' or click on search and nothing happens.
If I use the Google bar without problem.If there is a problem with the search through the default value: home page and then try to reset the search engine used on the subject: homepage.
Reset the pref browser.startup.homepage_override.mstone through the context menu by default on the topic: config page and close and restart Firefox to restore the on: default home page.
- Open the topic: config page through the address bar
- Type in the filter bar: mstone
- Right-click on the browser.startup.homepage_override.mstone line, and then select: Reset
- Close and restart Firefox
If this did not help, then remove the button Delete the chromeappsstore.sqlite file in the Firefox profile folder and repeat the foregoing.
-
Yahoo page does not work. It seems that java does not work, but I have the latest version installed. Yahoo email page has all the links scrambled together on the left side of the page. Same thing with face book page. All use them to work properly. 64 Waterfox win 7
Do not use waterfox, it is not supported and is a non-official version of Firefox that often has known bugs. Downlaod Firefox from www.getfirefox.com, uninstall waterfox, then try again.
-
Why the Polish support page does not work?
Why the Polish support page does not work?
http://PL.consumer.Toshiba.EU/PL/support/home/support_home?
I think the error message is pretty clear:
+ Service temporarily unavailable +.
+ The server is temporarily unable to process your request due to downtime or maintenance capacity problems. Please try again later. + -
G72-B66US laptop: Hp recovery disc order page does not work.
Order HP recovery disks page does not work. I returned including credit cards and it stops there. I did it several times over several days. Who should I contact to order discs?
For some strange reason, this often happens with Internet Explorer. You could try to install the Chrome browser, and try again.
https://www.Google.com/chrome/browser/desktop/
Or - you can use the telephone support.
http://welcome.HP.com/country/us/en/contact/phone_assist.html#section1
-
After VO extension update the page for some fields on a page does not work
After VO extension update the page for some fields on a page does not work. The message arrives the data are saved, but the values is the same as that of the former. And this happens with only a few fields, other fields are working well.
Any pointer to solve problems will be of great help.
Thank you in advance.
Check if the standard VO has a RowImpl and it overrides the methods getter and setter for fields that is affected. If so, you will need to call super() in your custom extended RowImpl to call this logic.
See the link below for how to call great from the extended RowImpl.
Johny tips: OAF: transient attributes not getting filled extended vo
Example Code:
public String getAttribute1() { //return (String) getAttributeInternal("Attribute1"); return super.getAttribute1(); }
If the above did not help, attach standard and custom VO files. We can have a look.
See you soon
AJ
-
Oracle EBS R12 login page does not
Dear professionals,
We are running Oracle EBS R12 on Solaris SPARC. We are facing a problem with the Login Page does not appear. When I go through the database alert log file, it shows the TEMP teblespace was complete. After adding data in the TEMP tablespace file, it still does not. Nevertheless, it must bounce application. I need to know why after solving the question of space, Login Page didn't? Why we must restart the application every time?
Thank you and best regards,
ARM
Hello
You don't have to restart the application.
Just restart the process of oacore.
On which version of R12 are you?
Thank you
-
After the upgrade from 5.5 to 6.1 VCenter Web Client vSphere page does not work?
Dear expert;
I need your help to solve my problem describe as below: -.
After Upgrade VCenter from 5.5 to 6.1 the vSphere Client Web page does not work, so I need to solve
Thank you.
This problem is solved by using below command
The '% VMWARE_PYTHON_BIN' list '%VMWARE_CIS_HOME%\VMware Services\lstool\scripts\lstool.py identity' - url http://localhost:7080/lookupservice/sdk - type vcenterserver > c:\psc_services.txt
'% VMWARE_PYTHON_BIN' Unregister '%VMWARE_CIS_HOME%\VMware Services\lstool\scripts\lstool.py identity' - url http://localhost:7080/lookupservice/sdk - Service_ID id in step 4 - user "[email protected]" - password "XXXXX" - non-cocher-cert
-
How can I cancel my subscription (month to month). The instructions on the support pages does not work.
Contact customer support to Adobe from Monday to Friday during normal business hours.
1 (800) 833-6687
Contact customer support via Online Chat
NOTE: A cancellation fee may apply.
Nancy O.
-
Drop-down page does not work in mode 'Fit a full page in the window.
Drop-down page does not work in mode 'Fit a full page in the window.
It's still doesn't work is not in V11.0.10 y at - it a new patch?
Don't know exactly what you mean. Maybe it's you saw continuous activated, rather than the display of the page.
-
Hello, "set as Start Page" does not work for me. Anyone has any idea why?
My "set as Start Page" does not work... anyone know what I can do?
Thank you!!
So, you tried to set the homepage under areas of site?
What is now your start page?
-
Oracle R12 ERP login page does not show?
Hello
We have Oracle ERP R12 12.0.6 running on the IBM AIX operating system with single node configuration server. These last two days, suddenly the login page does not appear for a few minutes. Once I bounced the level apps, it's ok. The database alert log shows this error "ORA-00600: internal error code, arguments: [kcbzwb_4], [], [], [], [], [], [], []. What it means? For the analysis of level apps, where can I find the log file? Is - this $INST_TOP/logs/admin/logs/appl/ora/10.1.2/forms or elsewhere?
Concerning
ArizuddinHello
I issued the following command, still no rows returned. SQL> show parameter "_in_memory_undo "
To see the hidden settings please use this query
SELECT
a.ksppinm 'Parameter', 'Value of Session' b.ksppstvl, c.ksppstvl 'value of the Instance.
FROM x$ ksppi, x$ ksppcv b, x$ ksppsv c
WHERE
a.indx = b.indx AND a.indx = c.indx AND a.ksppinm LIKE ' / _ %' escape ' / '.
/Thank you
-
"Include the header row in the following Pages" does not work for the table
Hello
I use the 8.1.2.3337.1.509884 version.
Pagnation function "include header line in the following Pages" does not work for any table in my design. (the check box cannot be verified little matter how many times I click it)
I put such table already in a bodypage flow.
Any reported similar problem?
Any suggestions?
Thank you.
-Vicky
The only thing I can think is that your table is not in a subform flowed. Who will stop the check boxes.
-
Bookmark this page does not work, nor is CTRL-D
Since the recent update I have not been able to bookmark pages. It works if I put Firefox in safe mode but not in normal. It seems that this has happened last week as a new update has been applied.
Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).
If Firefox is open, you can restart Firefox Safe mode in the Help menu:
- Click the menu button
click Help
then select restart with disabled modules.
If Firefox does not work, you can start Firefox in Mode safe as follows:
- On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
- On Mac: Hold the option key during the startup of Firefox.
- On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
(you may need to specify the installation path of Firefox for example/usr/lib/firefox)
When the Firefox Safe Mode window appears, select "start mode safe."
If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.
To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.
When find you what is causing your problems, please let us know. This might help others with the same problem.
- Click the menu button
-
topic: Home link on the Web page does not work
I have inserted a link on my Web page to about: home of the user to the homepage of firefox to take
It looks like this:
< a href = "subject: House" > < /a > Firefox
It seems to work fine on the desktop browser, but it does not work on Firefox Android on the Samsung Galaxy Note GT-N8010 using the android 4.1.2 version and Firefox Android version 33.0.
The link does not work, however, is recognized as a link, since the long press on the link gives options for opening/copying the link, but if I then select "Open in new tab", it still doesn't open it.
Is this normal or if the link works?
Thanks to anyone who can answer this,
CathIt will not work. It's intentional.
Maybe you are looking for
-
Using Firefox 17.0.1 and then I XP
-
Touch Screen issues (sensitivity)?
Just bought a brand new 6 iPhone plus (1 week) and find that the touch screen is very sensitive (definitely a regression of previous generations). I would really prefer not to return the unit and go through all the hassle of re-covering the screen an
-
Strange problem with Visual Studio
Hello. I hope to be in the right section.For some time (I can't say precisely how much, maybe since I've upgraded to Windows 10) I have a problem with Visual Studio 2013.In practice, after a few minutes, what is open (without doing special things, ev
-
the audio disc slot eject all disks before he reads or plays anything
my computer, hp touchsmart 300 ejects the disc. It will not read or play automatically just eject all disks
-
U3415 sharing the macbook pro and PC
Hi all recently purchased the rather excellent U3415 and I'll put up my installation of small music at home. On my desk, I have my macbook pro and my pc. I want to be able to do is to use a keyboard and mouse for both systems. I can do this with the