Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:29:16+00:00 2026-06-11T08:29:16+00:00

Hi having a bit of a problem what I’m trying to do is once

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:29:18+00:00Added an answer on June 11, 2026 at 8:29 am

    You use the wrong quotes and also a bracket is missing. Try this here:

    onclick="window.open('unenroll.php', 'Unenroll', 'menubar=no,width=200,height=100,toolbar=no')"
    

    Note that this must be in one line and also care about the php variable $pweek If that comes from the client you open a blind sql injection hole.

    In your SQL statement is also a quote and a comma missing:

    $sql1="Update tbl_enroll SET status='unEnrolled', counter='0', period='$pweek'";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a bit of a problem, I am trying to get a
Having a bit of problem with some syntax trying to insert HTML after an
I am having a bit of problem understanding with how arrays they handle their
I am having a bit of problem with my assignment. The user enters X
I'm having a bit of a problem with NSDateFormatter failing on one user's device
I'm having a bit of a problem trying to refine/refactor a LINQ to Entities
So i'm having a bit of a problem trying to compare two strings declared
I am having a bit of a problem here, I am let the user
I'm having a bit of a problem trying to import data from a CSV
Having a bit of a problem. Trying to assign a template variable within a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.