OK. This means that you need to put the img tag on the page after the user has submitted the form. Does that makes sense?
So, the first thing to do is to use the "good_template" feature to display a "thank you" page. That's where the img tag will go.
You can read about that here: http://www.tectite.com/vbforums/showthread.php?t=194 and download the Sample Good Template.
Next, you need to grab the affiliate ID from the redirect.
Here's what you need to do:
When you get to that point, you can load the form like this:
- Rename registerform.html to registerform.php. This converts the static HTML page to a PHP script. Just rename it and try it again. You'll find it works exactly the same as it did before.
- You can now save the affiliate ID in a hidden field on your form like this:
<input type="hidden" name="affiliateID" value="<?php echo $_GET["affiliate"]; ?>" />
Then look at the source in your browser and you'll see the hidden field set to 12345.
The final step is to put the img tag on the "good_template".
On your template, add this:
where TTR is the field that the user inputs on your form and affiliateID is the hidden field created above.
<img src="http://testing.omnisecureweb.com/affiliate/sale.php?affiliate=$affiliateID&amount=100.0&transaction=$TTR" style="visibility:hidden">