Re: MSIE Form posting Woes

From: Date: Fri, 01 Sep 2000 10:27:37 +0000
Subject: Re: MSIE Form posting Woes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14789@lists.php.net to get a copy of this message
On Fri, 1 Sep 2000, John Coggeshall wrote: > > <? > > if (!$button1value) && (!$button2value) > > { > > echo "Don't press return, moron!"; > > } > > ?> > > > > Slightly more humane error messages are encouraged. > > Well I ended up doing something simliar... I was looking for some sort of > client-side fix though ;) > > John John, if you give the form a name, then you can use javascript to submit it. Fire the submit function from the two buttons onClick event using different parameters. I find this works best with <input type=button... rather than <input type=submit... . From the javascript side the submit is called more or less as document.myform.submit(); The std disclaimers about js not always being available apply, so the _best_ solution may be the php one proposed above. Hope this helps -burk -- burk@pobox.com Linux File Managers: http://www.pobox.com/~burk/linuxfile.html

« previous php.general (#14789) next »