Re: Re: inputbox?
| From: | Justin French | Date: | Wed, 02 Oct 2002 03:54:43 +0000 |
| Subject: | Re: Re: inputbox? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118521@lists.php.net to get a copy of this message | ||
phpMyAdmin(.org) is a GUI web interface for managing MySQL databases. it's
open source, so if you like what you see, you can dig around in the code and
"borrow"... they pop-up confirmations on delete and empty type queries.
as for a simple confirmation script... I don't really have the time right
now.... but think of it this way...
- fill in form, POST to a confirmation form
- confirmation form echos what's about to happen back out onto the screen
- confirmation form has many hidden inputs which carry the values
- click yes, form submitted to a process page, containing the values
submitted
In other words, you have to pass the original form contents THROUGH an
intermediate page which says "are you sure?".
Justin
on 02/10/02 12:25 PM, Jeff Bluemel (jeff@domintcom.com) wrote:
> Justin...
>
> could I talk you into giving me an example in code of this? (I would really
> appreciate it)
>
> where is this phpmyadmin? I'm not seeing a function, and I searched php's
> website for this string, and I'm not finding anything.
>
> Jeff
>
> "Justin French" <justin@indent.com.au> wrote in message
> news:B9C0945C.12A5E%justin@indent.com.au...
>> Confirmation is easy -- the client has the right to ask for this
> component.
>> It's the method in which you want to confirm (javascript, pop-ups, etc)
> that
>> is the problem.
>>
>> It can be as simple as:
>>
>> submit form
>> page asking are you sure you want to blah blah blah
>> submit yes or no
>> action taken
>>
>> No javascript needed -- all php & html.
>>
>>
>> You might want to also take a look at phpMyAdmin, which has javascript
> alert
>> style "are you sure you want to ......" ok|cancel
>>
>>
>> Justin
>>
>>
>>
>> on 02/10/02 12:11 PM, Jeff Bluemel (jeff@domintcom.com) wrote:
>>
>>> LOL - I've been using VB for about 6 years, and I'm just beginning to
>>> convert over to php.
>>>
>>> the application I am writing is for prepaid phone cards. if they are
> going
>>> to activate a pin, inactivate, or recharge then I want a confirmation
> box.
>>>
>>> I would prefer to also have a box pop up to get the value they want to
>>> recharge instead of having an input text box on the form. for some
> reason
>>> people seem to over look the text box, and they tend to leave it empty
> vs.
>>> displaying a dialog box that asks for the amount they would like to
>>> recharge.
>>>
>>> I need to go back to my customers, and find out how important a
> confirmation
>>> box is. I had skimmed through the php functions, but didn't see
> anything
>>> that looked what I was looking for.
>>>
>>>
>>> "Brad Bonkoski" <bbonkosk@tampabay.rr.com> wrote in message
>>> news:3D9A473F.86794E13@tampabay.rr.com...
>>>> pop-up windows, reminds me of the days of visual basic programming....
>>>>
>>>> I know you can display dialog boxes using javascript, but not sure if
> they
>>> will
>>>> take a value in them, just like a confimirmation type box, like "Are
> you
>>> sure?
>>>> <OK> <CANCEL>"
>>>>
>>>> To the point, check some javascript references out, I know there are
> code
>>>> repositories sitting out there in cyber-space that will have at least
>>> something
>>>> to start off of.
>>>> -Brad
>>>>
>>>> Justin French wrote:
>>>>
>>>>> I don't understand. Twice.
>>>>>
>>>>> Tell us what you need, slowly and clearly.
>>>>>
>>>>> Justin French
>>>>>
>>>>> on 02/10/02 10:35 AM, Jeff Bluemel (jeff@domintcom.com) wrote:
>>>>>
>>>>>> anybody???
>>>>>>
>>>>>> anyway to pop up an inputbox that will get a variable? also, and yes
>>> / no
>>>>>> or ok / cancel boxes I can make pop up?
>>>>>>
>>>>>>
>>>>>> "Jeff Bluemel" <jeff@domintcom.com> wrote in message
>>>>>>
>>>>>> news:20021001033451.59263.qmail@pb1.pair.com...
>>>>>>> is there a way to for an input box to come up looking for a value?
> I
>>> know
>>>>>>> there are a few ways I could resolve my current issue, but I would
>>> prefer
>>>>>> to
>>>>>>> display an inputbox, and use that value in my query.
>>>>>>>
>>>>>>> basically I would do a $HTTP_SERVER_VARS['PHP_SELF'] as the
>>>>>>> action
> of
>>> a
>>>>>>> form, but then I would have to get a value to pass to the query.
>>> this
>>>>>> would
>>>>>>> be for prepaid phone cards. if somebody selected to recharge then I
>>> would
>>>>>>> like an input box to be displayed asking the amount they would like
>>> to
>>>>>>> recharge.
>>>>>>>
>>>>>>> --
>>>>>>> Jeff Bluemel
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> PHP General Mailing List (http://www.php.net/)
>>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>>
>>>>
>>>
>>>
>>
>
>