I have been asked to learn how to do some basic GUI programming. Can anyone suggest a good place to start that will teach me the basics? I just need to be able to modify an existing GUI to add new stuff to it.
You need to find a programming tutorial (that uses PHP) and start from there. If that's the level you're starting from, just creating this thread and asking questions is going to be way too painful and slow for you.Falcan":2acjrs08 said:I ended up following this article: http://www.zalas.eu/setting-up-a-php-de ... buntu-1004
So now I have a web server set up on my Ubuntu VM. I am able to create some text boxes and buttons and labels using a php script. What do I use to add actions to these buttons?
For example,
<div><input type="checkbox" id="myCheckbox" /><label for="myCheckbox" id="lblMyCheckbox">Check me!</label></div>
creates a checkbox, how can I read the state of this checkbox and do something?
There is a pretty significant difference between a client app and a web app (and even within web apps). PHP can't "listen" because it's sent you the form and it's done, at least until you push the button that sends your POST. AJAX can do some listening for you, but that's not what an HTML form does.I know in Java it's not that hard to create a panel, add a button, and assign an action listener to it. I hoped PHP was similar to that.