I’m quite new to MODx, I’m on a shared server, and I’m trying to connect from a web form I built to a database of contacts (I’d rather not use eForm because I built all of this before I moved to MODx).
Currently the entirety of my form is stored in a snippet. The form’s action is
<?php echo $_SERVER['PHP_SELF'];?>
and the attempted connection is being done like so:
$conn = mysql_connect('myhost', $secureuservariable, $securepasswordvariable); mysql_select_db('musicg_contacts');
but when the form submits, it does not perform the action I’m asking it to, it just forwards to the index.
Any help? PHP 5 and MySQL 5, Apache server, Safari 4 and Firefox 3.