RE: [PHP] use web hyperlink to insert data into MySQL?

From: Date: Wed, 02 Apr 2003 01:51:00 +0000
Subject: RE: [PHP] use web hyperlink to insert data into MySQL?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141909@lists.php.net to get a copy of this message
> I am trying to use PHP to create a hyperlink button that writes data to > MySQL database and sends the user to a new page.. is this possible? if so > would you post the syntax/site where I can find out how to do this... thx! Do you want a hyperlink or a button? You can't have both. Whether you add data on to a URL in a link such as example.php?var=1&foo=bar or use a form with method=GET, the data appears in example.php in the $_GET array. Parse and validate the values in that array and then insert it into the database. You can find any PHP/MySQL tutorial to tell you how to do that. ---John Holmes...

« previous php.general (#141909) next »