Results 1 to 5 of 5

Thread: Form Submissions

  1. #1
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Form Submissions

    I've got a URL that changes due to get statements, but the basic URL always remains the same. And I've got a form that submits with the action sending it back to itself (so I can process the queries on the same page).

    My problem is that if my URL is, for example, page.php?act=1
    And then I have a link that submits a form on that page, directed back to itself, with another get statement. Problem is, on submission, I go to page.php?ba=1 when I really want to be at page.php?act=1&ba=1

    So basically, I want the form action to be the complete URL when the page loads. How do i do that?

  2. #2
    Join Date
    Sep 2008
    Location
    Midland, Texas
    Posts
    52
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default

    I am sure that many of us will be happy to help you, but I think it would easier if you post your code.

  3. #3
    Join Date
    May 2009
    Posts
    62
    Thanks
    19
    Thanked 3 Times in 3 Posts

    Default

    yeah right....

  4. #4
    Join Date
    Jun 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    seems to me that your not building your like correctly. need to see code though.

  5. #5
    Join Date
    Mar 2009
    Location
    NJ, USA
    Posts
    32
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    http://php.about.com/od/learnphp/qt/_SERVER_PHP.htm

    I'm not fully understanding your problem but if you need your files name dynamically this should help.

    If you need to change the address in a static way (like add or remove www.) you can run it through another string or explode it or something. We need more though.

Bookmarks

Posting Permissions

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