I want solution for my problem.
I'm developing a web application where the application opens in a full screen mode. The users need a Show Desktop icon on it, clicking which the user's desktop comes up, just like the Windows Show Desktop icon.
Is this possible? If yes then please help me, its really important for my client!!,
thanks in advance,
var tbl = document.createElement("table");
var tblBody = document.createElement("tbody");
var body1 = document.getElementsByTagName("body");
var mainTable = document.getElementById("moreWorkTd");
var counter = parseInt(document.forms.clickCounter.value);
counter = counter + 1;
var row = document.createElement("tr");
var cell = document.createElement("td");
var cellText = document.createTextNode(labelArray[j]);
If I undestand you correctly, you're trying to add an element at a specific point in the DOM?
First, call dovument.createElement to actually create it, specify the attributes you would like, then get a reference to the table's intended parent using document.getElementById, then call parent.appendChild(element)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
A quick thanks to everyone who pointed me to PHP - Its going good !!
However i do have a small problem
The bellow code is never getting into the scond if when i know that $userId and $passord are correct. and also the SQL returns the correct values in the db. I have done a print $rec['userid']; print $rec['password']; but they appear to be blank
any Ideas ???
if($rec=mysql_fetch_array(mysql_query("SELECT * FROM user WHERE UserName='$userid' AND Password = '$password'")))
However on testing $rec['userid'] and $rec['password'] do appear to be blank but the below code works correctly. so i am confused as to how it is bringing the result of the SQL back correctly but $rec seems to be empty
if($rec=mysql_fetch_array(mysql_query("SELECT * FROM plus_signup WHERE userid='$userid' AND password = '$password'")))
Wrong Login. Use your correct Userid and Password and Try
My userid and password are currently just varchars in my database, I mannually entered them.
I am note sure if my explanation is clear. Please tell me if it isnt !
$user_name = $_REQUEST['user_id']; // Get the value of user id
$pwd = $_REQUEST['password']; // Get the password
database connection // To connect database if already done than its ok.
$query_check_user = "select * from user where UserName = '$user_name' and Password = '$pwd'";
$result_check_user = mysql_query($query_check_user) or die("Error in Checking validity of the user::Error -> ".mysql_error());
Although your question has been addressed I would like to point out that storing passwords in plain text in a data base is never a good idea.
Passwords should always be encrypted before being stored in a data base. Even the POST method sends the data to the server in plain text so the password should always be encrypted on the client before transmission.
I recommend storing password hash values rather than plain text passwords or even reversible encryptions of the passwords. This limits your liability because you never knew the actual password.
If the person forgets their password you can supply them with a randomly generated password, optionally with a short expiration interval, that is only valid for a single use and must be reset on first access.