Ive so far attempted to write JS functions that are called when the google button is clicked. However, when I click it now, it directs me to a new page with the message "The requested URL / actionpage.php was not found on this server." Scripting and HTML. If youre a developer, youve probably seen plenty of "Hello World" examples in your lifetime, but were going to ask that you put up with just one more.Our HTML code is specifying a page with a title, a heading, and one button. Having 2 files like you suggested would be the easiest solution. For instance: 2 files solution: Index. html. ( your html )
(). Is it possoble to have a php script executed when pressing a form button (eg. ) Or does the server only execute php on page load? i got a website with some buttons and a camerastream which shows a coffee machine. with php function im able to set the machine on/off via TCP/IP messages.Modified Mouad Nejjari code as below and this works index.
Click here: < button type"submit"That said, PHP is dead easy, try something like this (name it helloworld. php, not helloworld.
html)Joined: Mon Dec 12, 2011 8:30 pm. Location: Germany.