tags:

views:

17

answers:

2
+2  A: 

Because your SELECT element is named "title," it will be represented as $_POST["title"] when it arrives to the backend script:

$title = $_POST['title'];

Also, your query needs to be corrected:

$sql = "DELETE" . $title . "FROM pageTitle";

Should be:

$sql = "DELETE FROM tableName WHERE title = '{$title}'";
Jonathan Sampson
thanks, and how about the sql statement... how to gett that right??
mike varela
A: 

$title is going to be in $_POST['title'] ie. $title = $_POST['title']

prodigitalson