Form Button
Moderator: General Moderators
-
anthony88guy
- Forum Contributor
- Posts: 246
- Joined: Thu Jan 20, 2005 8:22 pm
Form Button
I have my code display for example 20 items in rows. I want each row to have a update button that is linked to something like 'users.php?mode=whatever' How do make a button link to a page, I could always use an image. But just wondering. Do i have to make a whole <form> for each button?
I think you can use some JavaScript
and then add:
Code: Select all
<script language="e;JavaScript"e; type="e;text/javascript"e;>
function Goto(value)
{
window.laction="e;index.php?page="e;+url;
}Code: Select all
<input type="e;button"e; onClick="e;item025"e;>
Last edited by Cinder on Sun Apr 17, 2005 3:13 pm, edited 1 time in total.
-
Phoenixheart
- Forum Contributor
- Posts: 123
- Joined: Tue Nov 16, 2004 7:46 am
- Contact:
I encountered this before, and this is how I dealed: For each row I echoed:
Then when you click on that "delete" image, it will open a new window that contains the file deletepage.php. This file will accept the code and then do deleting the product with that code.
I think your problem should be solved similiar.
Code: Select all
echo("<a href='deletepage.php?code=" .$row['CODE']. "' target=_blank><img source='delete.gif'></a>");I think your problem should be solved similiar.
-
anthony88guy
- Forum Contributor
- Posts: 246
- Joined: Thu Jan 20, 2005 8:22 pm