jelly46 — 2012-12-12T06:40:03-05:00 — #1
I am working with this piece of code and it is not firing when I put it in the page I need which is static HTML. It does work if you create a plain HTML page, but it is not working on the page I need.
<form name="CTTPDD" action="https://example.com" method="post" target="_blank"><input type="hidden" value="##.##" name="campaign" /><input name="repeat" type="hidden" value="1"><input type="image" src="image.gif" value="submit" name="submit" /></form>
What could it be?
Please can you help.
ralphm — 2012-12-12T07:08:21-05:00 — #2
Could you give a bit more information? What does "not firing mean"? What is the difference between the test page and the actual page it needs to work on? Can you post a link?
jelly46 — 2012-12-12T07:09:50-05:00 — #3
It doesn't go to the link i want it to go to.
ralphm — 2012-12-12T07:14:27-05:00 — #4
That's a shame.
But if you want more help, please try to answer some of those questions I asked.
If you just want a link to another page, a form input is not what you want. In that case, you just want a link. E.g.
<a href="http://example.com">View the Campaign</a>
jelly46 — 2012-12-12T07:17:20-05:00 — #5
Thanks. the code need to link through button code for it to work. As there is a value to it it needs to be executed via button HTML.
I can create a link now problem, its just that this is a bit more complex.
ralphm — 2012-12-12T07:48:08-05:00 — #6
OK, what exactly do you need to do with the botton. Could you explain the context fo this button? What information are you passing on, in what way? Are you using PHP, or something similar? Where does this value need to go?
jelly46 — 2012-12-12T07:52:23-05:00 — #7
OK, you've seen the code.
The link will go to a for so a user can donate, however the code needs fire the value of the campaign code.
the button code is on a html static page.
chris_upjohn — 2012-12-12T08:07:38-05:00 — #8
Why not simply just change the method from POST to GET?
technobear — 2012-12-12T08:57:08-05:00 — #9
Have you tried raising a support ticket with ctt.org, as it looks like their code you're using?
jelly46 — 2012-12-12T08:58:50-05:00 — #10
Yep, did that and we are looking into it, i just need to think outside the box.