FAQs: Popular Web Authoring Software


Q1: How do I paste the Americart tags into a page I am designing with Microsoft’s FrontPage?

A1: Method 1:
If you are familiar with html code, probably the easiest way to paste in the tags is to select the "html" tab at the bottom of your page window to switch to seeing the source code. Then, just place your cursor wherever in the source you want your form to appear and do a "Paste".

Method 2:
An alternate way where you can avoid the source code, but still do a quick and easy paste, is to use FrontPage's "Insert Html" function. In "normal" view, pull down "Insert", select "Advanced", then choose "Html...". You will get a pop-up window with a text area to paste in. To "Paste", you will have to use the keyboard shortcut, <ctrl>v (hold down Ctrl, hit v). The code you previously "Copied" should appear in the box. Then click "Ok".

If you use this method, the code will only appear in the "html" and "preview" view. If you want to make the code appear, and be "interpreted" by FP, switch to "html" view and delete the "webbot" lines from around your pasted code:
<!--webbot bot="HTMLMarkup" startspan -->
the code you pasted in
<!--webbot bot="HTMLMarkup" endspan -->

 

Q2: My Web site is built with Macromedia's Dreamweaver. There is a restriction in Dreamweaver that all name= options on the PAGE (as opposed to in that single form) must be unique. Thus the name=add in the order image becomes name=add, name=add2, name=add3 etc.

My question is: will this have an adverse effect upon the cgi requests? I have tried it a few times and it seems to work, but I am hesitant to make the code public. Can you clarify what might need to be done?

A2: It will USUALLY work, since add is the default operation of the cart. Some special purpose add items want to see that add button be name=add variable populated so test as you go.

The really safe way to do it would be to include this with each item:
The same technique will work for view.x and checkout.x
With those hidden variables included, it will not matter what the image is named and full compatibility is assured.

The same issue may come up with name=item. You would use name=item_something name=item_somethingelse. (Any unique text AFTER the underscore will do) op variables would then be named op1_something to match item_something.

This naming approach is actually the approach we use if you'd wanted to have more than one item per FORM. Dreamweaver just expands the necessity to use it to a per PAGE situation.

For more information on this naming convention, see the FAQ chapter on "Multi-item additions to cart".

Got any other Dreamweaver problems or hints? Please send them in.

[back to top]

< Back to FAQ’s

How helpful was this article?
Number of questions: 0