Ok, so I was trying to simply my original request a little so not to provide too much unneccessary info but I dont think either of those way work for my purposes. Here is my exact code....
So you will notice I have an encoded url that I need to send to jangomail. The domain I want to have as a variable is this the bolded part
after return_address=. Instead of
having http%3A%2F%2Fdev%2Eusta%2Eorg%2F in there I wanted to put a variable like say:
$domain
so it would look like this:
return_address=
$domainforms%2Ephp%3Furh%3Dhome%2Emarketplace%2Emailing%5Flist%2Ethankyou%5Fmailing
Is this possible inside the form action which is inside the echo?
Code: Select all
<?php
echo "<FORM ACTION="http://www.jangomail.com/processcode.asp?emailcat_id=295419&return_address=[b]http%3A%2F%2Fdev%2Eusta%2Eorg%2F[/b]forms%2Ephp%3Furh%3Dhome%2Emarketplace%2Emailing%5Flist%2Ethankyou%5Fmailing&send_email=ssullivan%40usta%2Eorg" METHOD="POST" NAME="J295419" ID="J295419" onSubmit="if ((email.value=='') || (first_name.value=='') || (last_name.value=='')) {alert('Please fill in all required fields'); event.returnValue=false; return false;}">";}
?>