Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email a friend not working


Platinum Games

Recommended Posts

Posted

Hello all, the "Tell a Friend " is not working on my site, it will add the item to the cart instead?

i have moved the right_column to the product_info.php page and all it does now is add the product to the cart.

 

any ideas, would this be carrying a value into the code that changes the output or something?

 

site: http://game-shop.platinumgames.com.au

 

thanking you kindly.

Thanks in advance!

 

Ben

Posted

Your <form> tags are screwed up.

 

Lok at your HTML source:

 

<form name="advanced_search" action="https://www.game-shop-shop.platinumgames.com.au/advanced_search_result.php" method="get"">

(...
  more code here
...)

</form>

<form name="cart_quantity" action="http://game-shop.platinumgames.com.au/flight-simulator-2004-dvdrom-while-stocks-last-warre-p-97.html?action=add_product" method="post">
(...
  more code here
...)

<form name="tell_a_friend" action="http://game-shop.platinumgames.com.au/tell_a_friend.php" method="get">
(...
  more code here
...)

</form>
(...
  more code here
...)

</form>

You didn't close the "add to cart" form before starting the "tell a friend" form.

 

The form tags should look like this:

 

<form name="advanced_search" action="https://www.game-shop-shop.platinumgames.com.au/advanced_search_result.php" method="get"">
(...
  more code here
...)
</form>

<form name="cart_quantity" action="http://game-shop.platinumgames.com.au/flight-simulator-2004-dvdrom-while-stocks-last-warre-p-97.html?action=add_product" method="post">
(...
  more code here
...)
</form>

<form name="tell_a_friend" action="http://game-shop.platinumgames.com.au/tell_a_friend.php" method="get">
(...
  more code here
...)
</form>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Your <form> tags are screwed up.

 

Lok at your HTML source:

 

<form name="advanced_search" action="https://www.game-shop-shop.platinumgames.com.au/advanced_search_result.php" method="get"">

(...
  more code here
...)

</form>

<form name="cart_quantity" action="http://game-shop.platinumgames.com.au/flight-simulator-2004-dvdrom-while-stocks-last-warre-p-97.html?action=add_product" method="post">
(...
  more code here
...)

<form name="tell_a_friend" action="http://game-shop.platinumgames.com.au/tell_a_friend.php" method="get">
(...
  more code here
...)

</form>
(...
  more code here
...)

</form>

You didn't close the "add to cart" form before starting the "tell a friend" form.

 

The form tags should look like this:

 

<form name="advanced_search" action="https://www.game-shop-shop.platinumgames.com.au/advanced_search_result.php" method="get"">
(...
  more code here
...)
</form>

<form name="cart_quantity" action="http://game-shop.platinumgames.com.au/flight-simulator-2004-dvdrom-while-stocks-last-warre-p-97.html?action=add_product" method="post">
(...
  more code here
...)
</form>

<form name="tell_a_friend" action="http://game-shop.platinumgames.com.au/tell_a_friend.php" method="get">
(...
  more code here
...)
</form>

 

 

Thank you i have corrected the </form> tag and it works perfect.

 

thanks again!

Thanks in advance!

 

Ben

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...