I am beginning to see the light with this reply. In fact, I already have javascript that opens a login window. Are you suggesting that the submit button call what you refer to as popup.php? The popup.php would check the login values an act appropriately? If so, then my final question is how to I get the login variable values from javascript to popup.php.
Thanks VERY much!
User Profile
Collapse
-
Right now, I have a function that displays the data in a reasonable format. When the user hits the "edit" button, a logon screen would appear. If there is a successful login, the data display function gets called again, but now one of the fields would now display as a hyper link. Clicking this hype rlink for any record gets a new window to edit the contents. This is the easy part because the code I inherited does the form and the resave...Leave a comment:
-
Can this be done in PHP
I am new to PHP but not programming. I'd like to know if this can be done before I do more research on how to do it.
I have existing PHP code that I inherited. It reads a database
and displays data. I've added an edit button. What I want to do
is open a login window and get a username and password.
If the login is successful, the data display should change. If not
no difference.
Is... -
This is the main file/routine index.php:
<?php
/* Main Screen for Admin purposes.
Call the display in read mode (false)
*/
include_once "adminDisplay.p hp";
adminDisplay("f alse");
?>
This is the portion of adminDisplay through the creation of the edit button:
<?php
function adminDisplay...Leave a comment:
-
PHP with Javascript authentication
I have PHP code that reads a database and displays data.
The display has a edit button that calls a javascript function to
ask for username and password.
I can get the username and password fine and close the login window
fine also.
I want the code to redisplay the PHP differently if the login was
successful. I display the data via a function with an argument
that determines what to... -
-
Simple Javascript form problem
What is wrong with this code that getval is not found?
// This function opens the login window.
[CODE=javascript]var loginWin;
function getval ()
{
return true;
document.write ("here I am");
alert ("boo");
}
function login ()
{
loginWin = window.open ("", "EditLogin" , "width=20,heigh t=600,scrollbar s=yes,resizable =yes,toolbar=no ,location=no,di rectories=no,st atus=no,menubar =no,copyhistory =no");...
No activity results to display
Show More
Leave a comment: