Link to home
Start Free TrialLog in
Avatar of breeze351
breeze351

asked on

Change a button after e-mail

I have a page with a button that sends an e-mail with the data on the page.  The page that sends the e-mail just returns to the original page.  How do I alert the user that they sent the e-mail (grey out or something else).  Should I set a $_SESSION var?
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of breeze351
breeze351

ASKER

Got it. Thought that there might be an easier way.
In my view AJAX is the easiest option - your backend script only needs logic for sending mail and returning status - no need for rendering an interface. The client script is also very easy - a single AJAX call with a status check in the callback.