PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
how do i include objects into forms?
how would in put the object into a form so a customer can select it and have the program post the selected item? i can do this in an array put dont understand how id do i this with objects..
does this make sense? let me kno if u need me to clarify anything
For me it is not clear enough what you are trying to do. Your example will work but will not do anything useful. It just gives some variables of a calss some values. So what?
You can use object properties the same way you use other vars eg echo them out in a form field in an html template.
Assuming you've got an object "$ob" (with a well-defined interface inc. getters for public object properties) an input field, for example, would go something like this:
m3rajk wrote:also try looking up ther heredoc syntax of echo over at good ol http://www.php.net
Or not.
I first thought that someone made an interesting post on the topic. Upon reading it, it shows that you are trying to get phpIsKillingMe (nice nick btw) to use the heredoc syntax...
I'm now wondering what that helps, when working with objects and forms?