Page 1 of 1

Button

Posted: Thu Oct 06, 2011 7:50 am
by jauson
Hi guys some comment will be appreciated!

in html
<a href='edit_form.php?id=<?echo $row['index']; ?>"> EDIT </a> <-- this is correct

how about the button? I cant insert in the value=""; any help pls? im newbie in php sorry.

Re: Button

Posted: Thu Oct 06, 2011 8:06 am
by Celauran
How about the button?
What do you mean? What are you trying to do?

Re: Button

Posted: Thu Oct 06, 2011 8:19 am
by jauson
is it possible to insert this code in a button? <a href='edit_form.php?id=<?echo $row['index']; ?> so when you click modify it will go straight to edit page form. thanks!

Re: Button

Posted: Thu Oct 06, 2011 8:23 am
by Benjamin
Try it and see :)

Re: Button

Posted: Thu Oct 06, 2011 8:32 am
by jauson
it works now! :D
<a href="modify.php?index=<? echo $rows['index']; ?>"><input type="button" name="modify" value="Modify" /></a>