Re: [PHP-DB] calling function on submit instead of going to a new script

2002-12-06 Thread rolf vreijdenberger
or use javascript, this really keeps you on the same page -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] calling function on submit instead of going to a new script

2002-12-04 Thread Ignatius Reilly
Simply append a parameter to the URL: action="same_page.php?selector=1" your script will take various actions based on a switch: switch $_POST['selector'] { case 1 : etc. Ignatius ___ - Original Message - From: "Gavin Amm" <[EMAIL PROTECTED]> To:

RE: [PHP-DB] calling function on submit instead of going to a new script

2002-12-04 Thread Beau Lebens
long story short - you can't you can only call a function in javascript or some other client-side scripting language like that, and you would use the onSubmit="" attribute of the tag. by the sounds of what you want to do - i would say you would do something like; 1. load values from db and disp