Frontpage messing with Paypal buttons...

M

Mark

I have FP2003 and am running a pretty basic site with templates for my 8
pages. I have a page with some items for sale through PayPal and PayPal
provides a short piece of code that I drop into the page under my items.
Anyway, all is well for a little while, but sooner or later, and this is
after I've gone in and changed something mundane like a color somewhere, FP
decides that since these little pieces of code look very similar (they are,
except for item name), it's gonna do something about it! So it
automatically adds sequential numbering into parts of the code and the links
are then dead. I can go in and fix them, but FP knows what's best for me
and CHANGES THEM BACK to the way it wants them.

How can I stop this from happening?

Thanks,
Mark
 
R

Rob Giordano \(Crash\)

Try inserting the code through; Insert | Web Component | Advanced Controls |
HTML see if that helps.



|I have FP2003 and am running a pretty basic site with templates for my 8
| pages. I have a page with some items for sale through PayPal and PayPal
| provides a short piece of code that I drop into the page under my items.
| Anyway, all is well for a little while, but sooner or later, and this is
| after I've gone in and changed something mundane like a color somewhere,
FP
| decides that since these little pieces of code look very similar (they
are,
| except for item name), it's gonna do something about it! So it
| automatically adds sequential numbering into parts of the code and the
links
| are then dead. I can go in and fix them, but FP knows what's best for me
| and CHANGES THEM BACK to the way it wants them.
|
| How can I stop this from happening?
|
| Thanks,
| Mark
|
|
 
S

Stefan B Rusynko

It is invalid html to have form fields w/ identical field names in the same form
- FP is appending the # to your form field name to correct your illegal html

The way to avoid this w/ something like PayPal which requires the field name to be the same is to make each PayPal link a separate
form
-so it you have 20 links you would have 20 forms

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have FP2003 and am running a pretty basic site with templates for my 8
| pages. I have a page with some items for sale through PayPal and PayPal
| provides a short piece of code that I drop into the page under my items.
| Anyway, all is well for a little while, but sooner or later, and this is
| after I've gone in and changed something mundane like a color somewhere, FP
| decides that since these little pieces of code look very similar (they are,
| except for item name), it's gonna do something about it! So it
| automatically adds sequential numbering into parts of the code and the links
| are then dead. I can go in and fix them, but FP knows what's best for me
| and CHANGES THEM BACK to the way it wants them.
|
| How can I stop this from happening?
|
| Thanks,
| Mark
|
|
 
M

Mark

Here's an example of a PayPal button:


<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="image"
src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0"
name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" [email protected]>
<input type="hidden" name="item_name" value="Item Description">
<input type="hidden" name="amount" value="Price">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form></p>


The only fields that vary are the "item_name" and "amount value".

Each copy of this snippet ends with </form> so I guess I don't know what you
mean by having to have separate forms - isn't that what this code is doing?
Obviously, PayPal buttons are used by the hundreds of millions on countless
thousands of websites, so I think that they'd know whether or not this is
valid html. Or does it just fly in the face of the way Micro$oft prefers
html?

Mark
 
S

Stefan B Rusynko

has nothing to do w/ how MS prefers anything related to html or paypal

You need to copy each form (all between <form...> and </form>) in code view
- when you do it in Design view FP assigns unique IDs to each form field
- because at the time of the paste FP can't check what surrounds the input tags

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Here's an example of a PayPal button:
|
|
| <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
| method="post">
| <input type="image"
| src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0"
| name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
| <input type="hidden" name="add" value="1">
| <input type="hidden" name="cmd" value="_cart">
| <input type="hidden" name="business" [email protected]>
| <input type="hidden" name="item_name" value="Item Description">
| <input type="hidden" name="amount" value="Price">
| <input type="hidden" name="no_note" value="1">
| <input type="hidden" name="currency_code" value="USD">
| <input type="hidden" name="lc" value="US">
| <input type="hidden" name="bn" value="PP-ShopCartBF">
| </form></p>
|
|
| The only fields that vary are the "item_name" and "amount value".
|
| Each copy of this snippet ends with </form> so I guess I don't know what you
| mean by having to have separate forms - isn't that what this code is doing?
| Obviously, PayPal buttons are used by the hundreds of millions on countless
| thousands of websites, so I think that they'd know whether or not this is
| valid html. Or does it just fly in the face of the way Micro$oft prefers
| html?
|
| Mark
|
|
|
|
|
|
| | > It is invalid html to have form fields w/ identical field names in the
| > same form
| > - FP is appending the # to your form field name to correct your illegal
| > html
| >
| > The way to avoid this w/ something like PayPal which requires the field
| > name to be the same is to make each PayPal link a separate
| > form
| > -so it you have 20 links you would have 20 forms
|
|
 
M

Mark

I do copy it in code view - that's the only way to paste code into the
pages. I just went through and fixed all of the fields where FP added
numbers to the values, then I saved the page and all was well. Then I
reopened the page, resaved (with no changes), went back in and looked and FP
had done it AGAIN! This is an enormous waste of my time and there has to be
a way to configure FP to leave my code alone? The page works just fine,
until FP "fixes" it for me :-(
 
M

Mark

Here's another, related question: Where can I obtain information on exactly
what a checkbox in FP does? For instance, the "Assign unique IDs to new
tables" checkbox in Page Options. There is no help button on that dialog
explaining what it does and FP help doesn't even have it listed. The MS
knowledge base can't find anything related to it!?!?!?!
That's just plain weird...
I tried searching for info on "Make ID unique on paste" and would you
believe, MS can't tell me anything about that either?
I know I'm sounding a little down on MS right now, but dangit, I shouldn't
have to go all the way to the MS knowledge base for this info, only to find
that it's not there either!!! I mean, if it's a checkbox in a configuration
screen, then information on what it does should be available for the user.
At the very least, I shouldn't have to search for it like I have (with no
results).

<<sigh>>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top