Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <input name="name" type="text" class="texto10" style="width:309px;border:0;" value="<?php pholder($name);?>"/>
  2.  
  3. function pholder($inputName) {
  4. global $nameErr, $name;
  5. if(empty($inputName)){
  6. echo "<span class='pholder'>".$nameErr."</span>";
  7. }else{
  8. echo $name;
  9. }
  10.  
  11. echo "<font color='red'>$nameErr</font>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement