how to connect php to html
how can I connect a PHP file to an HTML,CSS,JS web file?
I tested it on PHP web but it just runs the PHP even without clicking the submit button...
can I just set the ACTION attr on an HTML input element to the link of the REPL php?:
<form action='replink.php' method='post'> <input name='test'> <input type='submit'> </form>
- You need to be using the PHP Web template
- Form code needs to be on the index page
- Another page can pick up the submitted code using the $_GET or $_POST superglobal arrays
Have a look at this example: https://repl.it/@malvoliothegood/php-and-forms