milo3169
Programmer
- May 2, 2007
- 42
Hi,
I am working on this project where a sales person can send a Payment Request to a customer where they can pay on-line. So I wrote a PHP script to do that. It would build a dynamic form and send it in a HTML format to the customer. They click on the button and boom; it goes to their shopping cart. Well, some customers experience problems, because they can't view HTML in their email browser, so I wrote a text line with a link that they can choose if they can't see the HTML.
The problem I am having is that when the email is sent the text link is there, but when I click on the link it doesn't submit the form. It just opens a new window and in the url address bar it displays the HREF. When I bypass the mail function and just have the text link display on the browser page, the link works fine. Will someone be able to tell me why the email link is not working?
Thanks in advance.
I am working on this project where a sales person can send a Payment Request to a customer where they can pay on-line. So I wrote a PHP script to do that. It would build a dynamic form and send it in a HTML format to the customer. They click on the button and boom; it goes to their shopping cart. Well, some customers experience problems, because they can't view HTML in their email browser, so I wrote a text line with a link that they can choose if they can't see the HTML.
Code:
<a href=\"javascript:document.textlink.submit()\">Click Here</a>
The problem I am having is that when the email is sent the text link is there, but when I click on the link it doesn't submit the form. It just opens a new window and in the url address bar it displays the HREF. When I bypass the mail function and just have the text link display on the browser page, the link works fine. Will someone be able to tell me why the email link is not working?
Thanks in advance.