Re: phpmyadmin <form onsubmit>

From: Date: Sat, 11 Oct 2003 15:38:22 +0000
Subject: Re: phpmyadmin <form onsubmit>
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-165854@lists.php.net to get a copy of this message
What about some javascript to alert() and decide if the form executes like phpmyadmin does: http://ccl.flsh.usherbrooke.ca/example.jpg This would save me time coding PHP. How can I accomplish this? What does the onsubmit look like? John > * Thus wrote John Taylor-Johnston (taylorjo@collegesherbrooke.qc.ca): > > Any ideas? I want to avoid having two "mysql_query($sql)". I'm basically > > looking for better functionality and wanting to learn how to clean up my code. > there are a couple options, the insert has a extra option, 'ON > DUPLICATE KEY': > http://www.mysql.com/doc/en/INSERT.html > Or use the REPLACE syntax: > http://www.mysql.com/doc/en/REPLACE.html

« previous php.general (#165854) next »