Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2009
    Posts
    45
    Plugin Contributions
    0

    Default odd fields being added to URL after form submit

    So I added the following code to whos_online.php:

    PHP Code:
    zen_draw_form('refreshing'FILENAME_WHOS_ONLINE'''get') . 
      
    'Refresh every' .
      
    zen_draw_hidden_field('info'$_GET['info']) .
      
    zen_draw_input_field('refresh','','size="1"') .
      
    ' seconds. ' zen_image_submit('button_go.gif'IMAGE_GO) . '</form><br>' 
    every time you press go (submit) it works exactly as it should... but it adds &x=0&y=0 to the end of the URL. so my URL looks like:

    whos_online.php?info=frtsopl4sjavriultfhi57su57&refresh=20&x=0&y=0

    where is the &x=0&y=0 coming from? it doesnt seem to bother the site, but its bothering my brain! LOL

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: odd fields being added to URL after form submit

    x & y are added because you're doing an "image submit". It's a PHP thing, not a Zen Cart thing. The x and y are the coordinates where the mouse clicked on the image in order to trigger the submit. They're coming in as 0 because the mouse isn't being used due to your javascript automation.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: odd fields being added to URL after form submit

    if thats the case then why doesn't that happen on ALL zencart forms? they all use image submit.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: odd fields being added to URL after form submit

    It does, but Zen Cart ignores it.

    Is there a particular problem that it's causing for you?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: odd fields being added to URL after form submit

    no... its just annoying and doesnt make much sense to me... its on a zen cart page using zen cart form functions... so why does it ignore it everywhere else but not here? am I missing something in the above code?

 

 

Similar Threads

  1. Odd extra elements in URL after form submission
    By gjh42 in forum Contribution-Writing Guidelines
    Replies: 5
    Last Post: 28 Aug 2014, 04:40 PM
  2. class= being added to URL, breaking URL
    By hockey2112 in forum General Questions
    Replies: 3
    Last Post: 21 Jan 2011, 08:13 PM
  3. Attribute is Being Discounted with Item, Instead of Being Added on After Discount
    By alexiscreations in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 9 Oct 2009, 04:00 AM
  4. Create Account Form Blank after Submit
    By VitalBodies in forum General Questions
    Replies: 5
    Last Post: 1 Mar 2009, 02:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg