Search results
W3Schools Tryit Editor. Run . Get your own PHP server.
Code Editor (Try it) With our online code editor, you can edit code and view the result in your browser
Write and run your PHP code using our online compiler. Enjoy additional features like code sharing, dark mode, and support for multiple programming languages.
An online PHP editor that allows users to edit and run code, view the result in their browser, and learn PHP with interactive tutorials.
The code editor is packed with features to help you achieve more: Templates: Start from scratch or use a template; Cloud-based: no installations required. You only need your browser; Terminal & Log: debug and troubleshoot your code easily; File Navigator: switch between files inside the code editor; And much more! Learn More
if (empty($_POST["name"])) {. $nameErr = "Name is required"; } else {. $name = test_input ($_POST["name"]); // check if name only contains letters and whitespace. if (!preg_match ("/^ [a-zA-Z-' ]*$/",$name)) {. $nameErr = "Only letters and white space allowed"; }
Result Size: 497 x 420 <!DOCTYPE html >DOCTYPE html > < html > < body > < a href ="demo_phpfile.php?subject=PHP&web=W3schools.com" > Test $GET < /a > < /body > < /html >