Click here to Skip to main content
15,886,026 members
Articles / Web Development / HTML

PHP Code not executing please help

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
5 Oct 2012CPOL 0  
You need to use both sorts of quotes (single and double) for your onclick statement.It also looks like you're using a php variable(profileID) to index into the array. If so, you forgot the $ prefix.echo "<a class="cl2" href="deleteprofile.php?id=$noticia[$profileID]" onclick="return...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
5 Oct 2012I.explore.code
echo "Delete Profile ";you need to escape $noticia[profileID] as it is a PHP construct and not an HTML one.
Please Sign up or sign in to vote.
6 Oct 2012Sourav Sarkar-SS
i have solve my problem in my own waythanks everyonefunction confirmbox(){ var confirmed = confirm("Are you sure, You want to delete your profile?"); return confirmed;} Delete...
Please Sign up or sign in to vote.
5 Oct 2012Sourav Sarkar-SS 3 alternatives  
I wrote this line of code but is not giving expected outputplease help me to find out the error in this code.echo " Delete Profile  ";

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions