48
rated 0 times
[
51]
[
3]
/ answers: 1 / hits: 29411
/ 13 Years ago, sun, september 25, 2011, 12:00:00
I have a basic form, which i need to put some validation into, I have a span area and I want on pressing of the submit button, for a predefined message to show in that box if a field is empty.
Something like
if ($mytextfield = null) {
//My custom error text to appear in the spcificed #logggingerror field
}
I know i can do this with jquery (document.getElementbyId('#errorlogging').innerHTML = Text Here), but how can I do this with PHP?
Bit of a new thing for me with php, any help greatly appreciated :)
Thanks
More From » php