Hello guys, I know a bit of electronics but I am completely new to web programming.
I am making a home project in which I need to send some data to my arudino UNO board connected to the USB port of the PC over the web.
I saw on the forum that probably I need to use PHP serial library for that purpose.
But my problem is related to PHP if anyone can help. I plan to make a webpage with a number of radio buttons and a submit button for each pair of radio buttons. As I have seen in the tutorial for HTML and PHP the forms use POST method when the submit button is pressed and send some data to a page with the PHP script. But, I want it such that when I press the submit button instead of going to a new page just the commands for opening the USB port, sending the data associated with the particular selection of the radio buttons the user makes is sent. Can this kind of thing be done directly? Or do I have to use another method?
I would have included the code but I haven't written any at this moment because I am not able to figure this thing out right now.
Sorry if it is too obvious or I am just plain stupid. I am not asking for a code, just some directions :)