validation

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!

Moderator: General Moderators

Post Reply
junjustkim
Forum Commoner
Posts: 44
Joined: Thu May 22, 2008 8:48 pm

validation

Post by junjustkim »

hi to all

how to put "Required" at the right side of the text boxes if the user doesn't inputted any value in the text box or field? Validation is using javascript.

Thanks in advance.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: validation

Post by Eran »

junjustkim
Forum Commoner
Posts: 44
Joined: Thu May 22, 2008 8:48 pm

Re: validation

Post by junjustkim »

Thanks for your immediate replied. But his sample will used alert and not to put the words "Required" at the right side of the field or text box.

Thanks
lakshmanan
Forum Newbie
Posts: 1
Joined: Wed Jul 02, 2008 2:53 am

Re: validation

Post by lakshmanan »

Thanks to all, It was useful to me also...

Thanks and regards
Lakshmanan
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: validation

Post by Eran »

Thanks for your immediate replied. But his sample will used alert and not to put the words "Required" at the right side of the field or text box
It is an example for javascript form validation. You still need basic programming skills to apply it to your needs
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Re: validation

Post by Stryks »

If you don't want to use javascript, you can do it server side.

Have a read of THIS POST, especially the example near the end.

Cheers

[edit] Ahhh ... I should read better.
junjustkim wrote:Validation is using javascript.
junjustkim
Forum Commoner
Posts: 44
Joined: Thu May 22, 2008 8:48 pm

Re: validation

Post by junjustkim »

Thanks to all of your replied.

Cheers,

Tirso
Post Reply