Ok nearly got it, i changed the Trigger to `logged in to customerdata` and now i can insert records and they relate to the customer with a foreign key. But when i insert a record it inserts 2 blank records along with it and i get this error also:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\Petseen\Register\petdata_Insert.php:1) in C:\xampp\htdocs\Petseen\WA_SecurityAssist\Helper_PHP.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\Petseen\Register\petdata_Insert.php:1) in C:\xampp\htdocs\Petseen\WA_SecurityAssist\Helper_PHP.php on line 5
]]>
this is the code from line 5,6,7
// WA Application Builder Insert
if (WA_Auth_RulePasses("Logged in to customerdata")) // Trigger
{