473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help with PHP & Form Popup


Hi Everyone,

I am very new to this, so I'm hoping someone can help.

I have a form with buttons that a user can click. What I need to do
is that when a user clicks a button, before the form submits, I need
to show a popup window with a drop down list of values which were
returned from a MySQL query. And, the value selected will help drive
the next page shown to the user.

I've created the simple PHP to query the MySQL database, and, it
properly returns the values which I store in an array. However, I
have no clue on how to do a Javascript popup, let alone passing the
results from the MySQL query to be drawn on that popup html
page........

Can anyone help by either showing me some code or point me to a page
that has what I'm looking for? I've been at this for a few hours
already.

Thanks in advance!

Feb 26 '07 #1
4 2025
"am****@iwc.net" <am****@iwc.netwrote in news:1172509159.385098.140320
@v33g2000cwv.googlegroups.com:
I am very new to this, so I'm hoping someone can help.

I have a form with buttons that a user can click. What I need to do
is that when a user clicks a button, before the form submits, I need
to show a popup window with a drop down list of values which were
returned from a MySQL query. And, the value selected will help drive
the next page shown to the user.

I've created the simple PHP to query the MySQL database, and, it
properly returns the values which I store in an array. However, I
have no clue on how to do a Javascript popup, let alone passing the
results from the MySQL query to be drawn on that popup html
page........

Can anyone help by either showing me some code or point me to a page
that has what I'm looking for? I've been at this for a few hours
already.
Please take a moment to re-think what you're doing. A pop-up window with
choices is SOOOooo 1990s. This is 2007! (Of course, if your paying
customer wants it that way, you might need to oblige her. Or if this is
a class assignment, it will be best to do it that way. Otherwise,
revise!)

Better way: When user clicks a radio button, the drop-down list (called a
select control) appears _on the same page_. More user-friendly, and
easier to code, too.

Feb 26 '07 #2
On Feb 26, 2:51 pm, Jim Land <RrrrFfffTttt(NO)@(SPAM)hotmail.com>
wrote:
"ame...@iwc.net" <ame...@iwc.netwrote in news:1172509159.385098.140320
@v33g2000cwv.googlegroups.com:


I am very new to this, so I'm hoping someone can help.
I have a form with buttons that a user can click. What I need to do
is that when a user clicks a button, before the form submits, I need
to show a popup window with a drop down list of values which were
returned from a MySQL query. And, the value selected will help drive
the next page shown to the user.
I've created the simple PHP to query the MySQL database, and, it
properly returns the values which I store in an array. However, I
have no clue on how to do a Javascript popup, let alone passing the
results from the MySQL query to be drawn on that popup html
page........
Can anyone help by either showing me some code or point me to a page
that has what I'm looking for? I've been at this for a few hours
already.

Please take a moment to re-think what you're doing. A pop-up window with
choices is SOOOooo 1990s. This is 2007! (Of course, if your paying
customer wants it that way, you might need to oblige her. Or if this is
a class assignment, it will be best to do it that way. Otherwise,
revise!)

Better way: When user clicks a radio button, the drop-down list (called a
select control) appears _on the same page_. More user-friendly, and
easier to code, too.- Hide quoted text -

- Show quoted text -

Do you have any examples of this 'select control' that appears? It is
hidden until you want it to appear?

Feb 27 '07 #3
"am****@iwc.net" <am****@iwc.netwrote in
news:11*********************@s48g2000cws.googlegro ups.com:
On Feb 26, 2:51 pm, Jim Land <RrrrFfffTttt(NO)@(SPAM)hotmail.com>
wrote:
>"ame...@iwc.net" <ame...@iwc.netwrote in
news:1172509159.385098.140320 @v33g2000cwv.googlegroups.com:


I am very new to this, so I'm hoping someone can help.
I have a form with buttons that a user can click. What I need to
do is that when a user clicks a button, before the form submits, I
need to show a popup window with a drop down list of values which
were returned from a MySQL query. And, the value selected will
help drive the next page shown to the user.
I've created the simple PHP to query the MySQL database, and, it
properly returns the values which I store in an array. However, I
have no clue on how to do a Javascript popup, let alone passing the
results from the MySQL query to be drawn on that popup html
page........
Can anyone help by either showing me some code or point me to a
page that has what I'm looking for? I've been at this for a few
hours already.

Please take a moment to re-think what you're doing. A pop-up window
with choices is SOOOooo 1990s. This is 2007! (Of course, if your
paying customer wants it that way, you might need to oblige her. Or
if this is a class assignment, it will be best to do it that way.
Otherwise, revise!)

Better way: When user clicks a radio button, the drop-down list
(called a select control) appears _on the same page_. More
user-friendly, and easier to code, too.


Do you have any examples of this 'select control' that appears? It is
hidden until you want it to appear?

Yes, the select control is hidden initially. When the radio button is
clicked, use the radio's onfocus method to change the select control's
class from 'hide' to 'show'. (This will require CSS with classes named
'hide' and 'show'.) For an example of hiding and showing, see

http://support.internetconnection.ne...pt_Show_Hide.s
html

Feb 27 '07 #4
On Feb 27, 7:13 pm, Jim Land <RrrrFfffTttt(NO)@(SPAM)hotmail.com>
wrote:
"ame...@iwc.net" <ame...@iwc.netwrote innews:11*********************@s48g2000cws.googleg roups.com:
On Feb 26, 2:51 pm, Jim Land <RrrrFfffTttt(NO)@(SPAM)hotmail.com>
wrote:
"ame...@iwc.net" <ame...@iwc.netwrote in
news:1172509159.385098.140320 @v33g2000cwv.googlegroups.com:
I am very new to this, so I'm hoping someone can help.
I have a form with buttons that a user can click. What I need to
do is that when a user clicks a button, before the form submits, I
need to show a popup window with a drop down list of values which
were returned from a MySQL query. And, the value selected will
help drive the next page shown to the user.
I've created the simple PHP to query the MySQL database, and, it
properly returns the values which I store in an array. However, I
have no clue on how to do a Javascript popup, let alone passing the
results from the MySQL query to be drawn on that popup html
page........
Can anyone help by either showing me some code or point me to a
page that has what I'm looking for? I've been at this for a few
hours already.
Please take a moment to re-think what you're doing. A pop-up window
with choices is SOOOooo 1990s. This is 2007! (Of course, if your
paying customer wants it that way, you might need to oblige her. Or
if this is a class assignment, it will be best to do it that way.
Otherwise, revise!)
Better way: When user clicks a radio button, the drop-down list
(called a select control) appears _on the same page_. More
user-friendly, and easier to code, too.
Do you have any examples of this 'select control' that appears? It is
hidden until you want it to appear?

Yes, the select control is hidden initially. When the radio button is
clicked, use the radio's onfocus method to change the select control's
class from 'hide' to 'show'. (This will require CSS with classes named
'hide' and 'show'.) For an example of hiding and showing, see

http://support.internetconnection.ne...script_Show_Hi...
html
I completely agree with Jim, not only is that 1990's, but it's pretty
ugly (users think it's a popup ad or something), and is way harder to
code.

Feb 27 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Terence Parker | last post by:
I have a form which enables users to type in some text in a <TEXTAREA>, allowing them to use HTML. I have defined two submit buttons - one to submit as usual, but one which I would like to popup...
3
by: Chris | last post by:
Modal forms are great for locking the user out of non focused forms allowing tight control over program flow, but they have one side effect which user find very irritating i.e. Access cannot be...
3
by: Chris | last post by:
Hi, I have a parent page that loads a popup and when the OK button is press it pass the value back to the parent form textbox. It passes the value but it doesn't close the popup but also open...
4
by: Chris | last post by:
Hi, I am trying to create a popup calender so a user can click on a button on the main form, a calender will then popup, the user will select a date and then click ok on the popup. The date will...
5
by: Chris | last post by:
Hi, I have been trying for days, yes days, to use the calender from the asp.net timetracker starter kit. I am now frustrated. I finally get the popup calender to popup but when I click ok to...
2
by: Lethal Possum | last post by:
Hi all, I'm trying to make the following script work on Internet Explorer: function choose_target(form) { if (form.popup.checked == true) { form.target = '_blank'; } else { form.target =...
23
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to...
11
by: Rocky Road | last post by:
I'm using Access 2002 as a front end to a SQL Server 2000 database. I Update a status field in a SQL Server table using a parameter based stored proc. Works great. Then in the same sub, I open a...
3
by: ApexData | last post by:
I am using code from the following links to establish a Browse File and Browse Folder dialog. http://www.mvps.org/access/api/api0001.htm http://www.mvps.org/access/api/api0002.htm This code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.