Attached is a form that I am working on and I do not have this site on a server yet.
But I wanted to know how I would be able to create a “submit” button that would send all of the data to a database.
Attached is a form that I am working on and I do not have this site on a server yet.
But I wanted to know how I would be able to create a “submit” button that would send all of the data to a database.
Make sure you assign variable names to all the data that you are submitting and then…
Button action for submiting:
on (release) {
getURL("script.php", "", "POST");
}
Script PHP
<?
MYSQL_QUERY("INSERT INTO table_name VALUES ('$value1', '$value2', '$so_forth'");
?>
And make sure the variables assigned to the forms textfields match the $variable used in PHP; also maybe use loadVars instead of getURL…and if you have any other vars lying around the timeline you call that script from, all of them will be send, so in general, i prefer to use a special vars clip, where i store & retrieve all the needed (and only those) variables…
:: Copyright KIRUPA 2024 //--