Hi having a bit of a problem what I’m trying to do is once a user has clicked a button
the button should show a popup of a form so they might enter a value which is a date so it may be used for future uses and the popup has a submit button so process the action
with this code:
if (isset($_POST['unenroll'])){
$sql1="Update tbl_enroll SET status='unEnrolled' , counter='0'
period='$pweek";
$pow = mysql_query($sql1) or die (mysql_error());
}
I am having a problem on how to create the popup so far i have this:
onclick="window.open‘unenroll.php’,‘Unenroll’,
‘menubar=no,width=200,height=100,toolbar=no’)"
So far it just not creating the popup form. would appreciate any help.
You use the wrong quotes and also a bracket is missing. Try this here:
Note that this must be in one line and also care about the php variable
$pweekIf that comes from the client you open a blind sql injection hole.In your SQL statement is also a quote and a comma missing: