You are here: Re: Help with PHP & Form Popup « PHP Language « IT news, forums, messages
Re: Help with PHP & Form Popup

Posted by Geoff on 02/28/07 16:08

<amerar@iwc.net> wrote in message
news:1172509073.902798.312260@q2g2000cwa.googlegroups.com...
>
> 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!
>

not that i'm any expert but i went with something like

check if form has been posted to this page
(use if isset($_POST['whatever']) )
if form has been posted, write it into database

now get data from database and make your page with it
make sure the form post target is it whatever the current url is
<form method="POST" action="" name="editer_save">

---

if (form posted) {
write stuff to database
}
display page as normal

or maybe

if (form posted) {
write stuff to database
} else {
display page as normal
}

---

or maybe i'm talking tosh, is there a better way to do this stuff ?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация