Coding as below havinf error, help me please;

echo"<input type='submit' name='submit' value='DELETE' "onclick="return confirm('Are you sure you want to delete?')">;

function delete()
{
if (confirm('Are you sure you want to delete?'))
location.href = "http://www.yoururl.com";
}


aI("text=Delete;url=javascript:delete();");

function delete()
{
if (confirm('Are you sure you want to delete?'))
location.href = "http://www.yoururl.com";
}


aI("text=Delete;url=javascript:delete();");

thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.