Can't get price to show up in checkout page.

On my website's checkout page, I have the cost calculated by
charging customers per word at:
http://www.grammarperfection.com/cost.html.
After they get their estimate and click "Quick Checkout," the
number of words does not transfer to the next checkout page:
http://www.grammarperfection.com/checkout.php?serv=1&words=120.
Note, at the end of this url is 120, which shows that the word
count feature is getting sent to this page, but that number (or
whatever the word count currently is) does not transfer to the
"Number of Words" box.
Lastly, the info also will not populate on the final page:
http://www.grammarperfection.com/confirmorder.php
Please let me know what I am doing wrong.

Hello,
The reason the number of words is in the URL is because there
is JavaScript
in the page code that causes that to happen.
function goToCheckout(serviceOption){
var numWords = document.quickcalculator.txtWordCount.value;
var checkoutUrl = "/checkout.php?";
window.location.href = checkoutUrl + "serv=" + serviceOption
+
"&words=" + numWords;
This JavaScript is client side code. That means that it is in
the page code
downloaded from the server and your browser makes it work.
More to the point, you can see it in the page code the server
downloads so
it's included when you view source and copy.
PHP is a server side language.
There is PHP code in the checkout page that the owner
uploaded to the
server.
That code is what takes the URL parameter (the 173 in your
example) and uses
it.
The trouble is, all of that happens on the server and not the
page in your
browser as with the Javascript.
When the server downloads the checkout page to your browser,
it doesn't
download the PHP code in it. Just the HTML.
You are not seeing the same code the owner has in his copy of
checkout.php.
On the site you got the code from, it works like this:
When you click the "Quick Checkout" button, it triggers the
Javascript in
the page to insert the 173 into the URL and then sends a
command to the
server to download the checkout page to your browser.
However, before the server downloads the checkout page for
you to see, the
PHP code in that page tells the server to do something.
It tells it to add the 173 to the HTML in the checkout page,
and then it
downloads the page to your browser without any of the PHP
code.
In other words, the page you copied is very different than
the owner's page
on the server.
You can't get the page with the PHP in it unless you ask the
owner to send
you a copy.
You'll need to insert your own PHP into the checkout page you
made that will
tell the server to grab the 173 from the URL and insert it
into the HTML
before sending the page to the browser for your visitors to
see.
Take care,
Tim
"SeanWoods" <[email protected]> wrote in
message
news:[email protected]...
> The code came from
http://www.proofmydoc.com/proofmydoc.php.
So far the
> only
> things I have changed are to replace my own urls in the
code to make the
> pages
> change to my own when clicking "proceed with order."
Once I get the basic
> code
> working properly, I will change the look and feel of the
page to match my
> own
> page.
>
> Here is my website with the code inputted
>
http://www.grammarperfection.com/checkout.php
>
> Note: One part of the code is working properly which put
the number of
> words
> into the url. On the previous page,
>
http://www.grammarperfection.com/cost.html,
if I put in a document that is
> 173
> words long and click "quick checkout," it puts 173 in
the url
> (
http://www.grammarperfection.com/checkout.php?serv=1&words=173)
but not
> on the
> page where I need it.
>

Similar Messages

  • I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    If your Mac is new-ish and has one of the Lions as its OS, the drives, cards, USB sticks no longer show up, even though they're there. Go to Finder's Preferences and tick the corresponding items in the General and Sidebar tabs.

  • I downloaded an app on my ipad and can't get it to show up on my iphone and I have the icloud enabled

    i downloaded an app on my ipad and can't get it to show up on my iphone and I have the icloud enabled

    Is the app compatible with the iPhone (i.e. it's not an iPad-only app) and do you have the relevant iOS version on your iPhone ? Does it show in the Purchased section in the App Store app on the phone for you to download it (re-downloading) ?

  • How can I get photo of callers to vshow full page since I just did the update it doesn't show but a thumbnail pic

    How can I get photo of callers to vshow full page since I just did the update it doesn't show but a thumbnail pic

    That is the design in iOS 7.1 and there isn't any way to change it. You can provide feedback to Apple if you want: http://www.apple.com/feedback/

  • HT1363 My old iPod Nano says to use iTunes to restore and I've followed all suggested help steps, but I can't get it into disk mode nor can I get it to show in my computer or in iTunes.

    My old iPod Nano says to use iTunes to restore and I've followed all suggested help steps, but I can't get it into disk mode nor can I get it to show in my computer or in iTunes.  I have the latest version of iTunes.  Windows has all the most recent updates too.  I can reset the iPod, but the message to Use iTunes to restore comes back and I am stuck.

    Already tried another USB port, still nothing.
    I don't have another PC to check, I only have one which is the one not working with my iPod.
    It appears under my Computer, just not under iTunes. Plus, the iPod classic troubleshooting assistant doesn't work because I can't restore since it can't come up onto my iTunes! Even my iPod says "Use iTunes to Restore" once in a while, but I plug it in & I'm not able to restore it since it won't come up under iTunes.
    Please help

  • HT2513 In my iCal, "new reminder" does not appear in the menu under "File". How can I get reminders to show up on my iCal

    In my iCal, "new reminder" does not appear in the menu under "File". How can I get reminders to show up on my iCal?

    If you're running Mountain Lion (10.8.3), reminders is now a separate app.  Launch reminders from your applications group and you will be able to access File>New Reminder.

  • Can't get Ipod to show up on Itunes

    Can't get ipod to show up on Itunes

    Is it plugged in via a hub? If so, plug it directly into the box.
    If you're plugged into the box, try a different USB port.

  • Can't get wallpaper to show up in the background on my iPhone 3G

    Can't get wallpaper to show up in the background on my iPhone 3G????
    I have tried everything I can think of. But for some reason Apple has not made this easy to do. I just can't seem to get a Wallpaper to show up in the background. I can get it to show up on the lock screen, but that's it. Am I missing something? Has any one fond this simple feature hard to figure out?

    WHAT! Oh, come on. This was the only reason I was interested in iOS4. I mean really I knew a lot of features wouldn't work cause of the lack of procesor speed, but the Walpaper is just a static graphic, what is so hard with that? I mean three OS's ago I hacked my iPhone and got that feature working. Apple did the pooch on this one. I hope this is not like holding back features like they do on cars to sell the over priced ones.
    Gee! I am so ******! I spent a living H E Double Hocky Sticks trying to get the darnm OS on my iPhone and none of the features except the very poorly implemented folder or is tit a tray directory thing. Well it's back to OS 3 and hacking it to get it to work properly.

  • I can't get the tv shows to play... just getting a black screen.

    I can't get the tv shows to play... just getting a black screen. HELP!!!!!

    caddis,
    I am getting the EXACT same problem.  I started to watch an iTunes purchased TV Show episode back on February of 2014.  I stopped after about 15 minutes to come back and watch it later.
    Yesterday, I tried to continue the tv show, and NOTHING.  All I get is a black screen with no audio.  The time bar is advancing, so iTunes thinks it is playing.   BUT NOTHING.
    Can anyone assist with this problem?
    PS:  I use my iTunes on my PC only, and have for years without this problem. 
    PC is fully HDCP compliant.
    Intel i7-4770K
    Windows 7 Professional
    16 GB ram
    256 GB Samsung SSD
    2 - Nvidia Gefore 560ti GTX in SLI

  • When I have a pdf file open, I used to be able to click on "Bookmarks" tab on left side and allow me to click on each individual page and delete if I needed to.  Now when I click on the Bookmarks tab, that section is empty.  How can I get it to show each

    when I have a pdf file open, I used to be able to click on "Bookmarks" tab on left side and allow me to click on each individual page and delete if I needed to.  Now when I click on the Bookmarks tab, that section is empty.  How can I get it to show each page again?

    Hi chrismarks1,
    I think you may be confusing bookmarks with thumbnails. If you click the Page Thumbnails icon (the one above the Bookmarks icon), then you can delete a page by clicking its thumbnail, and clicking the Delete Pages icon (the trashcan icon). Just make sure that you're viewing the PDF file in Acrobat (rather than Acrobat Reader), as you can't delete pages from Reader.
    Best,
    Sara

  • After updating to iOS 7 the contact photos no longer appear when I receive a call. How can I get them to show again?

    After updating to iOS 7 the contact photos no longer appear when I receive a call. How can I get them to show again?

    I'm having the identical problem on my iPhone 4 after upgrading to IOS 7--no ability to update apps or download new apps.  Here is what Apple tech support emailed to me:
    I understand that you are unable to download or update applications after updating iOS7 on your iTunes. I know you must be eager to get this resolved and I will be happy to help you today.
    ... to help you better with this issue I would request you to please try this steps given below to resolve your issue.
    Please follow this steps:
    1) Double tap the home button
    2) Hold down on an icon
    3) Tap the red "X" on iTunes, and the App Store.
    4) Tap Settings > Store > Tap your Apple ID, and choose sign out
    5) Tap Settings
    6) Tap General
    7) Tap Reset
    8) Tap Network Settings
    Once it has been closed with multi-tasking, and you have rebooted the device in the network settings reset, please sign in, and try again. 
      Howevr, if you are facing the same issue than for this issue, you may need to call our AppleCare technical support team. A technical Advisor will be able to tell you about Apple's complimentary and fee-based support. The technical Advisor can also assist you in determining what option might be most helpful to you in this case.
    Mildly amusing that the instructions for force-closing a program are the IOS 6 instructions, which do not work on IOS 7. 
    Otherwise I'm having a little success with this.  Some apps (not all) are updating. It seems that a few more apps update each time I go through the process (close everything, sign out, and either reset or reboot, then go to the app store, sign in and try to update all).  So far it has been a very lengthy, iterative process. 

  • I have purchased tv shows on my I pad in I tunes yet they don't show on my iPad anywhere!i have tried syncing to my pc and they show and can be viewed in there.how can I get them to show on my iPad?i have turned on home sharing as well!

    I have purchased tv shows on my I pad in I tunes yet they don't show on my iPad anywhere!i have tried syncing to my pc and they show and can be viewed in there.how can I get them to show on my iPad?i have turned on home sharing as well!

    Where are you looking on your iPad for the shows?  In iTunes?  If so, look under Videos.

  • I have 2 apple tv's but my playlists only show on one; can I get them to show up on both? I have home sharing turned on and itunes match.

    I have 2 apple tv's but my playlists only show up on one; can I get them to show up on both? I have home sharing turned on and itunes match.

    If you are attempting to share to both at the same time, you can't.
    Are you selecting the second AppleTV in home sharing options on the MBP. Are all devices signed in for Home Sharing with the same AppleID?
    You will also find some additional things to check here: Troubleshooting Home Sharing

  • How can I get my mail show up on notification area?

    How can I get my mail show up in the notification area?

    Go to Settings > Notification Center > Mail. You can select how you would like to receive the notifications per email account. Make sure you have selected 1, 5 or 10 Unread item under 'Show in Notification Center' first.
    More on Notifications here.

  • How can i get Iphone to show as a device in itunes

    how can i get Iphone to show as a device in itunes

    iPhone: Not recognized in iTunes for Mac OS X

Maybe you are looking for