I am just experimenting with some databases for my webshop.
And right now I try to add products through an admin pages to my database.
I have this in :
<?php
function test(){the code}
?>
and in body I have a form with this:
<form action="test()" method="post">
</form>
Is this possible to do with xHTML or not?
If not what would be the best way?
If you want to use PHP and a form to submit data just use this example:
Now if you want to use that data in a javascript function try.