[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    Re: [PHP] Add buttons on the fly
From:       Chris <dmagick () gmail ! com>
Date:       2006-10-31 23:12:14
Message-ID: 4547D84E.5060300 () gmail ! com
[Download RAW message or body]

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.

PHP only works server side. Once the page is generated, php's job is done.

To change anything once it's already there, you need javascript 
(probably an AJAX type solution so you post a question, get the answer 
back and decide what to do in javascript).

-- 
Postgresql & php tutorials
http://www.designmagick.com/

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic