[PHP-DB] Re: problem with form

2001-07-10 Thread Hugh Bothwell

Try setting form.action and using form.submit() to send it ('edit.php' is
not valid javascript).

Here:








Note that this includes a fall-back: if JavaScript is not supported, the
form will be submitted by either button.

"Jennifer Arcino Demeterio" <[EMAIL PROTECTED]> wrote in message
000a01c1092d$0c3baba0$[EMAIL PROTECTED]">news:000a01c1092d$0c3baba0$[EMAIL PROTECTED]...
> hello,
>
> hope anyone has an idea on how to fix this...
>
> 
>  OnClick="submit.php" class="button">
>  class="button">
> 
>
> even i click on the edit button, it will still go to submit.php page, why
is
> that?
>
> thanks



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Re: problem with form

2001-07-10 Thread Johannes Janson

Hi,

> hope anyone has an idea on how to fix this...
>
> 
>  OnClick="submit.php" class="button">
>  class="button">
> 

you could give the form one action and then check on the following page
wether $Submit or $Edit is set.

form.php

...


doit.php
http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]