Re: Add buttons on the fly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, October 31, 2006 3:46 pm, Wang Chen wrote:
> I would like to add two buttons on a page form infomation
> confirmation,
> however, the html code in php nest can not be known by browser if  I
> put
> <form xxxxxxx> <input xxxxxxxxxx> </form> into there.
> Besically, there is a mail form to enter iterm infomaiton, if it exist
> before, prompt its iterm id., if it is new, query a next available
> inerm id
> for it, then, show a page to ask such as, "do you accept this id?",
> two
> buttons below this question, yes and no.
>
> Is there any fountion in php which can make it?  Thanks.

PHP lives and runs, eats and breathes, lives and dies, ONLY on your
web-server.

You want something to happen in real-time with the user interaction,
almost-for-sure PHP is not going to be involved, at least not for your
first attempt at this.

You may end up going down the AJAX-y route, and having PHP back in the
picture for suggesting the next potential iterm id (whatever that is)
but it will just be a tiny little PHP script to pick the next ID, not
anything to do with how it's presented to the user or showing/hiding
form elements in real-time -- that's all JavaScript.  Or Java applet. 
Or even Flash (blech).

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux