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!
I am trying to create a page with differant forms using switch();
however i am kinda lost, any help that will get me on the right track would be great, also how to get rid of the Undefined 'cmd' when opening the page.
So what ure saying is that my example should work, when i take out the break after the default ?
Would that also get rid of the undefined 'cmd' error ?
I got me this book right here next to me, but it speaks of
<input type="text" name="%s" value="%s">
Now i do not have a clue where the %s are coming from. However i want to create something simular. To be able to edit / delete or whatever, with the information retrieved from a database. Thats why the differant cases.
However i came to the next problem using the switch, is how to get the switch case out of the form ?
meaning how do i determen which case to be used !?
Thanks i think i got something figures out here.. , still on the 56k so not really time to go to php.net and read about it hehe..
However i faced the following problem.
i am using mysql_fetch_accoc.
Wht i am trying to do is to get some $row['var'] into my my next query.
since i am kinda depending on them for the next query, now i did figure out that that is not going to work...
Is there a way ?
i tried global $row['var'] ( prolly stupid,, what ohwell could give a try ey ? )