Jump to content

gw1500se

Members
  • Posts

    1,029
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by gw1500se

  1. Start at the beginning. Post the query you use to update/insert the password.
  2. First please use the code icon (<>) in the menu for your code and specify PHP. 1. How did you define the password column in MySQL? 2. How did you store the password in the database? 3. Assuming you used 'password' to do the store you must use the same function in the query to retrieve the row. 4. 'password' is a MySQL reserved word so you should avoid it for a column name. If you do use it, you must always enclose it in back ticks(`) in your queries. As an aside, I suggest you use PDO as it is easier and more flexible. You should also never use post data directly in any MySQL query. Validate it and use prepared statements.
  3. You need to tell HTML that you are uploading multiple files. See "Uploading multiple files".
  4. You still will need something on the client side to run the API. That means, again, PHP must ask the user to execute whatever code.
  5. First please use the code icon (<>) in the menu for your code and select PHP. As to your problem, keep in mind that PHP is stateless and server side. It does not know anything about a previous display of a page. To accomplish what you want you need to use sessions.
  6. Post your code here. Not many will go to a 3rd party site to look at your code. Be sure to use the code icon (<>) in the menu and select PHP.
  7. You launch it from javascript but you would need to have the client register an application.
  8. What do you mean browser script? PHP is server side only. It cannot see anything on the client side (javascript). As a matter of security, a browser will not execute programs on the client. You need to look around line 33 in that script for a syntax error. It may occur before line 33.
  9. I think you still have the wrong path. I think you really want: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  10. I believe using single quotes (') instead of double quotes (") will work also. However that will also make the script non-portable to *nix but then power shell does not exist on *nix either.
  11. There is your answer. You have the wrong path.
  12. Insufficient information. What is returned from 'exec'? You are not checking that. What error are you getting? Be sure to have error reporting in you script. error_reporting(E_ALL);
  13. PHP mail can be finicky which is why almost all programmers use PHPMailer.
  14. As I originally said, you should use PHPMailer and it won't be as difficult to debug. You could have easily had it re-coded by now.
  15. Comment out everything in the body except 1 line and see where the error goes.
  16. Again, you are not checking the return code from 'mail'. Also the reply to header does not look like a valid email address.
  17. The error may be occurring somewhere else but that is the point at which PHP could not go any further. Headers MUST be the first things sent. There can be nothing preceding headers including white space.
  18. First I highly recommend you use PHPMailer. It is much easier, more robust and gives you more control. You are not checking the return code from 'mail'. It will return true on success or false on failure. Your code does not know if it is successful or not. In any case that is only half the problem. You also need to check your MTA. What are you using? Does your mail server require a sign-in to send mail. Have you looked at your mail log for any errors?
  19. Too short. You still haven't said what the error is. We are not mind readers. See my first reply.
  20. "Its not working" is NOT a helpful description. What is the error, if any? What is it doing different than you expect? Do you have error reporting turned on? Is there any errors in your httpd log?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.