PDA

View Full Version : Form Submissions



InNeedofHelp
06-25-2009, 08:53 PM
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?

xtiano77
07-02-2009, 01:33 AM
I am sure that many of us will be happy to help you, but I think it would easier if you post your code.

heavensgate15
07-02-2009, 10:37 AM
yeah right....

Elkidogz
07-02-2009, 10:55 PM
seems to me that your not building your like correctly. need to see code though.

AdrielGreene
07-03-2009, 10:43 AM
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.