Javascript Alert Using Echo In Php Stack Overflow

Javascript Alert Using Echo In Php Stack Overflow There's a way to send a message after redirecting to a new page using php. header("location: thank you ?success message=thanks for shopping with us"); if the statement doesn't run; header("location: index "); then in the new page called thank you for example, you should display the message; . Learn how to display an alert message box using php and javascript with examples and best practices from the stack overflow community.

Php Echo Is Printing Javascript Alert Code On Page Stack Overflow Why do you want header ("location:form ") at the top? if you want to redirect the user to form after the alert, you should just redirect the user in the javascript as such : echo 'location.href="form "';. Echo "data has been submitted to $to!"; you can echo javascript in a