I have a form with checkboxes with unique names and which get the valua Y when checked.
I want to send a seperate, different email for each box checked.
Then on the page after pressing submit, I have added:
<script language="javascript"
if (PRODUCT1== "Y"<input type="hidden" name="cgiemail_message" value="message1.txt">;
if (PRODUCT2== "Y"<input type="hidden" name="cgiemail_message" value="message2.txt">;
</script>
So I think it should send message1 when PRODUCT1 has the valua Y, and message2 when PRODUCT2 has the value Y.
But this won't work. Anyone know why? The form I am testing is on
I want to send a seperate, different email for each box checked.
Then on the page after pressing submit, I have added:
<script language="javascript"
if (PRODUCT1== "Y"<input type="hidden" name="cgiemail_message" value="message1.txt">;
if (PRODUCT2== "Y"<input type="hidden" name="cgiemail_message" value="message2.txt">;
</script>
So I think it should send message1 when PRODUCT1 has the valua Y, and message2 when PRODUCT2 has the value Y.
But this won't work. Anyone know why? The form I am testing is on