<? echo("input type=\"button\" value=\"$task[task]\" onlick=\"window.location.href='taskedit.php?p=$task[id]'\">\n); ?>
the output is a button not a link to edit the task in taskedit.php
What am i doing wrong. Need help. thx
You don't have to use the echo("Something"); syntax. you can do like this: echo "Something";
Try this:
<? echo "<input type=\"button\" value=\"$task[task]\" onClick=\"window.location.href='taskedit.php?p=$task[id]'\">\n"; ?>
fixed it.
Originally posted by rIkLuNd 1. You don't have to use the echo("Something"); syntax. you can do like this: echo "Something"; Try this: <? echo "<input type=\"button\" value=\"$task[task]\" onlick=\"window.location.href='taskedit.php?p=$task[id]'\">\n; ?> [/B]
Originally posted by rIkLuNd 1. You don't have to use the echo("Something"); syntax. you can do like this: echo "Something";
<? echo "<input type=\"button\" value=\"$task[task]\" onlick=\"window.location.href='taskedit.php?p=$task[id]'\">\n; ?>
[/B]
Yeah I found the solution. I used the "<?" for the php code. what else am i doing wrong?
just press this button which says PHP on the box