Re: questions regarding PHP and Forms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 1) I need to do vaildation on form values that I have entered into a
> form.  Is there a way I can write the vaildation code on the same page
> as the form in php?

Yes there sure is. :)

if (isset($submit)) {
    // data validation etc.
}
else {
    // display html form
}

> 2)  I have a drop down menu on one of my form fields.  What I want to
> do is if a certain item is seelected I want to have a new textbox
> appear below the drop down menu.  Is there a way to do this in php?

You'll have to do this via JavaScript. =/

Hope that helps!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux