I have a PHP login system where you can delete your account/profile if you’d like to. When the user clicks on the button I want them to be logged out, their account to be deleted and an alert message (JavaScript) saying that their account has been deleted. The problem is that the alert message doesnR…
Tag: javascript
Link inside form referring to the action of the form instead of the link
I am trying to make the link inside the form go to signup2.php. Instead it is going to loginprocess.php. Is there any way to do this by keeping the signup link inside the form? <form action = &…
Show the amount of files uploaded at the right of an input
i am creating a form with a input=file, my problem is that when i added CSS to this, the number of files updated dissapear, i know that is because i put display=none in the CSS, but i need them to appear, or people won’t know the file uploaded correctly, is there a way to make this? i prefer without uss…
multiple dropzone upload on 1 single line mysql
I’m trying to upload multiple files at the same time and insert the file paths on 1 single mysql line per upload, but this adds one line per file. Looks to me like my js dropzone setup is good but it doesn’t work on a single line but it adds one line per file in the database Thank you for
Using PHP echoed options in JavaScript generated select options
WHAT AM I DOING? I am making a transaction keeping application that has an option to bulk add transactions. It is a form which has a table inside. Each row of the table stands for one transaction …
How to call a PHP function from a processed PHP page with a button click?
There are quite a few examples out there, but I can’t seem to get them to work and they seem overly complex for the simple thing I need to do because the code presented in those examples is far more complex as well. Basically, I have a form that, when submitted, it processes the data in a presentable fo…
How to convert editable PDF to non-editable PDF in PHP/NodeJS?
Problem I would like to know is there any PHP/NodeJS API available to convert editable PDF to non-editable PDF online. We have a client application where we need a scenario where the user downloads the PDF should not able to modify it thought any software (eg. Foxit reader, Adobe) Basically, we are using PDF-…
Stripe Unexpected token < in JSON at position 0
I am getting this error, it points to client.js line 21. It is the second .then of the fetch(create.php). The first response returns 200. So, not sure how to fix it. The whole code so far is as …
Why is this simple PHP login script not working?
I am very new to PHP and JavaScript and I have made a PHP and Javascript login script. However, it just shoots out Incorrect username or password. even though it’s correct. Here are my scripts: PHP: Javascript: HTML: I do not see a problem with this so I am not sure what is going on but if you can help
Automatically calling a javascript function from php
I’m building a web app using codeigniter 4.0.4. I want to automatically call a javascript function once whenever a certain php variable is set. But I don’t know how to call the function through php or html. The code goes as follows: The javascript function: The php: Answer its working