FrontPage adding to code Part 2

N

nellie

Thank you for your answers Stefan and Kevin, yet I am still struggling
with this...

Here is the code in context, and each button is contained within a form
of its own, in a table of its own...yet FrontPage is adding a number to
each one.

Before

[table cellpadding="0" cellspacing="0" style="position: absolute; left:
779px; top: 436px; width:106px; height:24px" height="38" id="table61"
width="106"]
[!-- MSTableType="layout" --]
[tr]
[td height="38" width="106" valign="top" style="position: absolute;
z-index:1"][form action="http://sitenshop.com.au/addCart.php"
method="post"]
[input name="iid" value="02321" type="hidden"]
[input name="sid" value="nelliebellecraft_com_au" type="hidden"]
[input name="return_url"
value="http://www.nelliebellecraft.com.au/canvas.htm" type="hidden"]
[input name="Qty" size="2" maxlength="2" value="1" type="text"
style="font-family: Tahoma; font-size: 8pt"][input value="Add To Cart"
type="submit" style="width: 70; height: 17; font-size:
8pt"][/form][/td]
[/tr]
[/table]


After

[table cellpadding="0" cellspacing="0" style="position: absolute; left:
779px; top: 436px; width:106px; height:24px" height="38" id="table61"
width="106"]
[!-- MSTableType="layout" --]
[tr]
[td height="38" width="106" valign="top" style="position: absolute;
z-index:1"][form action="http://sitenshop.com.au/addCart.php"
method="post"]
[input name="iid" value="02321" type="hidden"]
[input name="sid35" value="nelliebellecraft_com_au" type="hidden"]
[input name="return_url"
value="http://www.nelliebellecraft.com.au/canvas.htm" type="hidden"]
[input name="Qty" size="2" maxlength="2" value="1" type="text"
style="font-family: Tahoma; font-size: 8pt"][input value="Add To Cart"
type="submit" style="width: 70; height: 17; font-size:
8pt"][/form][/td]
[/tr]
[/table]


I had to substitute [] for <> because the message would not post on
this board otherwise.

Sometimes the input name = "sid" gets added to, other times all
four input name = gets added to (the same number for all four
within the form)
I just don't know what to do...


Janelle
 
T

Thomas A. Rowe

Assign each form a unique name should solve the problem, so your form tag will look like:

<form action="http://sitenshop.com.au/addCart.php" method="post" name="form1">

This way you should be able to keep the fieldnames correct, but allow for having multiple forms on a
single page.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

nellie said:
Thank you for your answers Stefan and Kevin, yet I am still struggling
with this...

Here is the code in context, and each button is contained within a form
of its own, in a table of its own...yet FrontPage is adding a number to
each one.

Before

[table cellpadding="0" cellspacing="0" style="position: absolute; left:
779px; top: 436px; width:106px; height:24px" height="38" id="table61"
width="106"]
[!-- MSTableType="layout" --]
[tr]
[td height="38" width="106" valign="top" style="position: absolute;
z-index:1"][form action="http://sitenshop.com.au/addCart.php"
method="post"]
[input name="iid" value="02321" type="hidden"]
[input name="sid" value="nelliebellecraft_com_au" type="hidden"]
[input name="return_url"
value="http://www.nelliebellecraft.com.au/canvas.htm" type="hidden"]
[input name="Qty" size="2" maxlength="2" value="1" type="text"
style="font-family: Tahoma; font-size: 8pt"][input value="Add To Cart"
type="submit" style="width: 70; height: 17; font-size:
8pt"][/form][/td]
[/tr]
[/table]


After

[table cellpadding="0" cellspacing="0" style="position: absolute; left:
779px; top: 436px; width:106px; height:24px" height="38" id="table61"
width="106"]
[!-- MSTableType="layout" --]
[tr]
[td height="38" width="106" valign="top" style="position: absolute;
z-index:1"][form action="http://sitenshop.com.au/addCart.php"
method="post"]
[input name="iid" value="02321" type="hidden"]
[input name="sid35" value="nelliebellecraft_com_au" type="hidden"]
[input name="return_url"
value="http://www.nelliebellecraft.com.au/canvas.htm" type="hidden"]
[input name="Qty" size="2" maxlength="2" value="1" type="text"
style="font-family: Tahoma; font-size: 8pt"][input value="Add To Cart"
type="submit" style="width: 70; height: 17; font-size:
8pt"][/form][/td]
[/tr]
[/table]


I had to substitute [] for <> because the message would not post on
this board otherwise.

Sometimes the input name = "sid" gets added to, other times all
four input name = gets added to (the same number for all four
within the form)
I just don't know what to do...


Janelle
 
N

nellie

Thank you for your suggestion, Thomas, I am trying it at the moment, and
just waiting for the help desk of my shopping cart provider to give
their opinion on it....I have almost 3000 items in my site and I don't
think I'll add 3000 form names until I'm pretty sure it will work!!!

I felt that I was missing something fundamental that would make the
forms distinct from each other - I just don't have the experience in
programming to know exactly what to change or add.

However, I feel that you have hit on the solution....thank you very
much. If it works you have saved me a great deal of extra work!

Janelle
 
T

Thomas A. Rowe

Have you considered generating your cart pages from a database?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
N

nellie

Yes I thought about that at the beginning, but I had so much to learn
about developing the website pages, that the idea of llearning about
making my own shopping cart scared the heck out of me.

At the moment I am using SiteNShop, which, apart from the cart button
thing which is a FP problem, is working quite well.

Janelle

Have you considered generating your cart pages from a database?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

Since you are using a shopping cart, then you should be able to dynamically generate your pages and
bypass the current FP issues.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

nellie said:
Yes I thought about that at the beginning, but I had so much to learn
about developing the website pages, that the idea of llearning about
making my own shopping cart scared the heck out of me.

At the moment I am using SiteNShop, which, apart from the cart button
thing which is a FP problem, is working quite well.

Janelle

Have you considered generating your cart pages from a database?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

 
N

nellie

Well, yes, I could, but I wanted more autonomy than that
generally gives.
I also did not know at first how the shopping cart worked and basically
developed my whole site in FrontPage...and with almost 3000 items, that
would be way too much to do over again, and besides I like what I
have.
So I am using the shopping cart's Add, View and Checkout buttons, their
product database, and generated reports.
That is really what I wanted from it anyway.

If you are interested in having a look, my site is at

www.nelliebellecraft.com.au

Keep in mind that it's my first site - it will probably look very
amateurish.

Regards
Janelle
Since you are using a shopping cart, then you should be able to
dynamically generate your pages and
bypass the current FP issues.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

You would still be able to create you pages the way you want when using dynamically generated pages,
any in the long run you would have less work to do in manage your store content.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

nellie said:
Well, yes, I could, but I wanted more autonomy than that
generally gives.
I also did not know at first how the shopping cart worked and basically
developed my whole site in FrontPage...and with almost 3000 items, that
would be way too much to do over again, and besides I like what I
have.
So I am using the shopping cart's Add, View and Checkout buttons, their
product database, and generated reports.
That is really what I wanted from it anyway.

If you are interested in having a look, my site is at

www.nelliebellecraft.com.au

Keep in mind that it's my first site - it will probably look very
amateurish.

Regards
Janelle
Since you are using a shopping cart, then you should be able to
dynamically generate your pages and
bypass the current FP issues.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

 

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