Home Web development How to use click – PHP – SitePoint Forums

How to use click – PHP – SitePoint Forums

0

Hello, a little help please. I used :


target name
purpose for target
username " "
password " "
secure?/ans " "
emailused " "
0000-00-00
22

Y

in an html program to store display passwords, click the button and navigate to the url.

This BELOW code selects a record from a database table and updates the date and times visited.
I want to use the onclick here to go to the url too. Preformatted text

email menu
";} //This creates the drop down box echo "'; ?>

then
'.''.''. 'Email menu'. ''.''; echo ''.''.''.''.' '.' '.' '.' '.' '.' '.' '.' '.' '.''; while($data=mysqli_fetch_row($result)) {echo ("");} echo '
'.'id'.''.'target'.''.'username'.''.'password'.''.'purpose'. ''.'emailused'.''.'lastused'.''.'visitcount'. ''.'saved' .'
$data[0]$data[1]$data[2]$data[3] $data[4]$data[5]$data[6]$data[7]$data[8]
'.''.''.''; $target="target"; $visitcount="visitcount"; $lastused='lastused'; $saved='saved'; $sql = "UPDATE lookuptbl SET visitcount=$visitcount + 1, lastused=NOW() , saved='$saved' WHERE target="$target""; if ($con->query($sql) === TRUE) { echo "Record updated successfully"; } else { echo "Error updating record: " . $con->error; } $con->close(); } ?>


Why not use an HTML a label?