che_anj
08-07-2007, 03:58 PM
The purpose of creating this code is when I click the link which is the $row[employer_name] the said (FillAll $row[employer_name will be pass to the textbox of the parent window) and the second is by clicking the said the $row[employer_name] it will change the link.
echo "<a href='javascript:FillAll(\"$row[employer_name]\",\"$row[employer_id]\");'
'"; echo $_SERVER["PHP_SELF"]; echo '?click=searchcomp.php&empid='.$row['employer_id']."'
>$row[employer_name]</a>";
by just using below alone will work
echo "<a href='javascript:FillAll(\"$row[employer_name]\",\"$row[employer_id]\");'>$row[employer_name]</a>";
and also with this will also work
echo "<a href=
'"; echo $_SERVER["PHP_SELF"]; echo '?click=searchcomp.php&empid='.$row['employer_id']."'
>$row[employer_name]</a>";
but combing the two wont work anymore.. could anyone tell me why..
tnxxx.
echo "<a href='javascript:FillAll(\"$row[employer_name]\",\"$row[employer_id]\");'
'"; echo $_SERVER["PHP_SELF"]; echo '?click=searchcomp.php&empid='.$row['employer_id']."'
>$row[employer_name]</a>";
by just using below alone will work
echo "<a href='javascript:FillAll(\"$row[employer_name]\",\"$row[employer_id]\");'>$row[employer_name]</a>";
and also with this will also work
echo "<a href=
'"; echo $_SERVER["PHP_SELF"]; echo '?click=searchcomp.php&empid='.$row['employer_id']."'
>$row[employer_name]</a>";
but combing the two wont work anymore.. could anyone tell me why..
tnxxx.