Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP help


mrdj204's Avatar
Member
0 0

i need this

markupecho "<tr><td><center><a href=edit.php?Item=" . $row['Item'] . ">" . $row['Item'] . "</center></td>";

to look like this

markupecho "<input type='button' name='whatev' OnClick='goto a page'>

plz and thank you, and let me know if i need to clarify that


ghost's Avatar
0 0

just make your link the action of the button….maybe i didnt understood what youre tring


mrdj204's Avatar
Member
0 0

i got a little farther


echo "<input type='button' value='$easy' onclick=window.location='edit.php?Item=$easy'>";```

i got it to go without errors, but i cant get the variable to come up in the address bar, or in the button

and i prefer not to use a  submit button

SySTeM's Avatar
-=[TheOutlaw]=-
20 0

echo "<input type='button' value='" . $easy . "' onClick=\"location.href='edit.php?Item=" . $easy . "'\">";```

Try that, not sure if it'll work, but try it anyway lol

mrdj204's Avatar
Member
0 0

nope, who woulda thought it be soo hard to make a button that has its name as a varialbe


mrdj204's Avatar
Member
0 0

i feel sooooo smart…. damn case sensitive PHP and MySql


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

Rofl, my example would have worked if you'd of told me the row was actually called "Item" and not "item" ;)


mrdj204's Avatar
Member
0 0

well, i dint know it was case sensitive, until my friend told me.