onblur help

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
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

onblur help

Post by vin_akleh »

why the onblur php code doesn't work here:

Code: Select all

<input type="text" name="name" onblur="<?php if(value==null)value='Type Link Name here...' ?>" onfocus="value=''" value="Type Link Name here..." size="40"/>
can any one correct that pleas? :?: :?:
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: onblur help

Post by Benjamin »

PHP does not execute in the browser. You'll need to use javascript.
Post Reply