Skip to content
Advertisement

Tag: alert

Show JS alert on a form php

I have the following php code, which is a wordpress hook to display an address autocomplete form on my website’s cart page. The function was written in functions.php file. I dont want the customer’s to enter their unit numbers or house numbers. As such, I want to display a simple js alert if a customer enters “/” charachter in the

Equivalent of Alert() and Prompt() in PHP

In JavaScript, we have Alert() and Prompt() which open up a popup box for the user. Is there an equivalent for PHP? $Get_[‘asdf’] is one way to get user input… any others? Also, one more question. Is it a requirement that PHP always be executed all at once? Or can it be like JavaScript, where it waits for the user

Advertisement