Author |
Topic |
bobby131313
Senior Member
USA
1163 Posts |
Posted - 05 June 2007 : 16:14:02
|
Make a file called inc_paypal_button.asp and put all your button code in it, button code only, make sure it's uploaded in your forum directory.
Then right where Podge told you to put the code put...
%> <!--#INCLUDE FILE="inc_paypal_button.asp" --> <%
See if that works, it should, I do that all the time cause I like to edit code as little as possible. Always have a backup!
If it works you can always tweak the spacing or positioning in the include file using div's or br's or the like.
< |
Switch the order of your title tags |
Edited by - bobby131313 on 05 June 2007 16:17:18 |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 05 June 2007 : 16:31:35
|
Just out of curiosity, did you remember to undo the changes you mentioned making earlier to inc_header.asp?< |
|
|
gibsongk55
Starting Member
Thailand
33 Posts |
Posted - 05 June 2007 : 16:31:57
|
Hey Bobby,
I just did that and it does not work. The page loads with the html code showing up in the footer area.
Gib < |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
Podge
Support Moderator
Ireland
3775 Posts |
|
gibsongk55
Starting Member
Thailand
33 Posts |
Posted - 05 June 2007 : 16:43:10
|
Hi Mark,
This is all i have in the new inc_paypal_button.asp file.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHJwYJKoZIhvcNAQcEoIIHGDCCBxQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQ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McZS2djZNbhOklyQNPAQQqKrcUVH49+xuj7mI=-----END PKCS7-----">
</form>
Thanks,
Gib< |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
gibsongk55
Starting Member
Thailand
33 Posts |
Posted - 05 June 2007 : 17:06:26
|
Podge,
That finally did work. Thank you very much for bearing with me.
Gib< |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
bobby131313
Senior Member
USA
1163 Posts |
Posted - 05 June 2007 : 17:21:38
|
Podge, can you think of any reason the include file didn't work? I have several spots I've done that and never had any trouble. Works like a dream.
< |
Switch the order of your title tags |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Podge
Support Moderator
Ireland
3775 Posts |
Posted - 05 June 2007 : 18:26:04
|
Handy little tool for converting html to Response.Write format - http://www.chrishardy.co.uk/asp/tools/html-to-response-write-converter.asp
Response.Write "<form action=""https://www.paypal.com/cgi-bin/webscr"" method=""post"">" & vbCRLF & _
"<input type=""hidden"" name=""cmd"" value=""_s-xclick"">" & vbCRLF & _
"<input type=""image"" src=""https://www.paypal.com/en_US/i/btn/x-click-but21.gif"" border=""0"" name=""submit"" alt=""Make payments with PayPal - it's fast, free and secure!"">" & vbCRLF & _
"<img alt="""" border=""0"" src=""https://www.paypal.com/en_US/i/scr/pixel.gif"" width=""1"" height=""1"">" & vbCRLF & _
"<input type=""hidden"" name=""encrypted"" value=""-----BEGIN PKCS7-----MIIHJwYJKoZIhvcNAQcEoIIHGDCCBxQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCrStAHO2Zbjv4o+52G8gwBnO33bpCygTpbWemhJXz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" & vbCRLF < |
Podge.
The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
My Mods: CAPTCHA Mod | GateKeeper Mod Tutorial: Enable subscriptions on your board
Warning: The post above or below may contain nuts. |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 05 June 2007 : 18:51:40
|
Too bad I didn't know about that a few years ago. < |
|
|
Topic |
|