[!--quoteo(post=372711:date=May 9 2006, 03:15 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ May 9 2006, 03:15 PM) [snapback]372711[/snapback][/div][div class=\'quotemain\'][!--quotec--] If you want to run the PHP code first then you'll want to change the action so the form submits to itself, checks whether everthing is valid and the use the header function redirect to the perl script, however you need to pass the POSTed data to perl script in the URL then in per get the GET information from the url. Thats the only way. Or just use PHP to send the email [/quote] thanks.....wow......looks like i need to dump the perl script or the php validation and then add the missing part. The perl script redirects also too. Guess i should just do everything in PHP. I've seen some people put the whole HTML code inside the header function. Is that possible? then it runs the action= when submit has a value?