Button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jauson
Forum Contributor
Posts: 111
Joined: Wed Oct 05, 2011 12:59 am

Button

Post 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.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Button

Post by Celauran »

How about the button?
What do you mean? What are you trying to do?
jauson
Forum Contributor
Posts: 111
Joined: Wed Oct 05, 2011 12:59 am

Re: Button

Post 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!
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Button

Post by Benjamin »

Try it and see :)
jauson
Forum Contributor
Posts: 111
Joined: Wed Oct 05, 2011 12:59 am

Re: Button

Post by jauson »

it works now! :D
<a href="modify.php?index=<? echo $rows['index']; ?>"><input type="button" name="modify" value="Modify" /></a>
Post Reply