I’m working on a project and I have a html site, we have a button to pay on the
ID: 3909619 • Letter: I
Question
I’m working on a project and I have a html site, we have a button to pay on the site What I want to do is when the user presses the button I want to open up a new box on the same page “not a new window”where I show the balance of the user. However, I’m not sure on how to do so Is it using php POST or how exactly.Please be clear and keep in mind I’m a noob web developer.
Thank you I’m working on a project and I have a html site, we have a button to pay on the site What I want to do is when the user presses the button I want to open up a new box on the same page “not a new window”where I show the balance of the user. However, I’m not sure on how to do so Is it using php POST or how exactly.
Please be clear and keep in mind I’m a noob web developer.
Thank you What I want to do is when the user presses the button I want to open up a new box on the same page “not a new window”where I show the balance of the user. However, I’m not sure on how to do so Is it using php POST or how exactly.
Please be clear and keep in mind I’m a noob web developer.
Thank you
Explanation / Answer
See , what I understood by your question is you want a pop up box to open when the button is clicked
There are varios ways of creating that mostly JAVAscript used in Front end development of popup
TRY the following Javascrip code and add it to your code
<!DOCTYPE html>
<html>
<body>
<h2>Click the Pay button to know the balance</h2>
<button>Pay</button>
<p id="demo"></p>
<script>
function BalanceFunction() {
var txt;
if (confirm("Your Current Balance is 100 Dollar")) {
txt = "Click the Pay button again to make Payment";
} else {
txt = "Please click on the Ok button in the Alert box to proceed further";
}
document.getElementById("demo").innerHTML = txt;
}
</script>
</body>
</html>
Now if you want to show a real time value/balance in the pop up box you need to show me the data base details so that I can connect with the data base and show the value extracted from data base
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.