PHP doesn't handle this, HTML does. You would use the input tag with the type set to reset. This will set your input & textarea fields to their initial value. More info can be found here: http://www.w3schools.com/default.asp
On Jan 23, 7:40 am, "Navshah" <[EMAIL PROTECTED]> wrote: > Hi all, > > I am new to PHP. I couldn't find my solution by searching your group > perhaps these small things are not discussed here. > > I created a text box for name and a text area box for comments and put > two (submit and clear) buttons. > > what code will be placed for clearing the text field and the text area > box either in HTML page or in PHP script file. > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
