Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8699773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:01:48+00:00 2026-06-13T02:01:48+00:00

SO..i have this project that is totally backwards, but basically i have to give

  • 0

SO..i have this project that is totally backwards, but basically i have to give a working form that adds a quantity of some item_ID and then redirects to the cart page of a framework i use.

Of course rather than me just skin my framework, and customize its functionality for him. This guy has some hacked up php pages that he “wrote himself” that he insists on hard coding forms into.

anyways, i have a form that submits to my cart.php in the action

<form name="orderform" method="post"     action="http://s429036015.onlinehome.us/cart.php" id="orderform">
    <input type="hidden" name="mode" value="add" />
    <input type="hidden" name="productid" value="140" />
    <input type="hidden" name="cat" value="" />
    <input type="hidden" name="page" value="" />
    Qty <input type="text" id="product_avail" name="amount" />      
   <button class="button main-button list-button add-to-cart-button" type="submit" title="" onClick="location.href='cart.php'">
    <span class="button-right"><span class="button-left">Add to cart</span></span>
  </button>       
</form>   

The above form submits properly, with the quantity entered, session stores the data and the items are in the cart just fine….however, that onclick event on the <button> doesn’t work!

I’ve even tried this

<button class="button main-button list-button add-to-cart-button" type="submit" title="" onClick="GotoPage(); return:true;">

with this script ahead of the form

<script type="text/javascript">
  function GotoPage() {
    window.location = "http://s429036015.onlinehome.us/cart.php";
  }
</script>

anyone have any ideas? driving me nuts…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:01:49+00:00Added an answer on June 13, 2026 at 2:01 am

    In PHP, after you process data from form, try this:

    header('location: http://s429036015.onlinehome.us/cart.php');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this project that it's due in a few hours and I still
I have been handed this project that has a large number of issues with
I have a Silverlght library project that produces a dll output. This project utilises
I have taken over a project that was build from suggestions in this Dan
We have a project that’s using many C++11 facilities, and we thought about this
I have a project that I am trying to convert to OSGi. However, this
My use case is this... I have a project that has two production branches.
I don't even know how to describe this. I have a WPF project that
This is for a web project so i have several classes that inherit from
I have tried this code in a totally separate project, and it works fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.