By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,841 Members | 854 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,841 IT Pros & Developers. It's quick & easy.

PHP form processing with URL parameters and Forwarding to HTML page

P: n/a
Apologies for cross-posting, but I felt this query would be relevant to HTML
and PHP forums.

I am currently modifying a PHP IMAP script which allows the user to view
their email via a web browser. I have made use of URL parameters which are
passed to the webserver, and processed by the PHP code (better than
javascript). No problems so far :)

When I have reached a point where I no longer need these parameters, I use
PHP header/location forward to reload the HTML form page. If my page was
http://www.mysite.com/ foo.html and I was forwarding** to this specific URL
(without any ***?myval=????&anotherVal params).

When I reload the form**, I keep my URL parameters that were present*** the
previous time the form was processed (they are there in the URL_REFERRER).
Can someone tell me how to lose the parameters, so I just forward to
foo.html. :)

thanks :)

cheers

Miles.




Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Miles Davenport wrote:
When I have reached a point where I no longer need these parameters, I use
PHP header/location forward to reload the HTML form page.


Why? If some parameter is there that you don't require, simply ignore it.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

Jul 17 '05 #2

P: n/a
My URL parameters provide additional information/behaviour for the
form. After a form transaction has been completed, I want to reload
the form without the parameters, so it "starts over".

Miles.

Toby A Inkster <Us******************@deadspam.com> wrote in message news:<pa****************************@goddamn.co.uk >...
Miles Davenport wrote:
When I have reached a point where I no longer need these parameters, I use
PHP header/location forward to reload the HTML form page.


Why? If some parameter is there that you don't require, simply ignore it.

Jul 17 '05 #3

P: n/a
Miles Davenport wrote:
My URL parameters provide additional information/behaviour for the
form. After a form transaction has been completed, I want to reload
the form without the parameters, so it "starts over".


Then something like this:

if (isset($_GET['startover'])) {
unset($_GET['parameterIDontWantAnymore1']);
unset($_GET['parameterIDontWantAnymore2']);
unset($_GET['parameterIDontWantAnymore3']);
}

?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.