SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Born to Code rainadaman's Avatar
    Join Date
    Feb 2005
    Location
    india
    Posts
    793
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question wat is wrong here??

    if($_POST['adCategoryName']=='')
    {
    javascript:error();//error shown here.
    }

    i dont know much bout javascript, so pls tell me wat i m doing wrong here.
    i m doing this in php
    I was born intelligent,
    But Google ruined me.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Er ... are you trying to call a client-side JavaScript function from a server-side PHP script?
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •