473,503 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP form processing with URL parameters and Forwarding to HTML page

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
3 2911
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
821
by: Miles Davenport | last post by:
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...
1
425
by: Binod Nair | last post by:
Hi All, I have an ASP.NET appication running on http://xx.xxx.xxxx.xx/aspApplication and I have a domain http://www.mydomain.com registered at godaddy.com for this application.I have setup...
9
3126
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
6
4960
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
3
2082
by: raj chahal | last post by:
Hi there i have created a registration page containing a form than sends username password to an asp processing page. If the user exists it sends the user back to the registration page with...
15
1953
by: Jack | last post by:
Hi, I have a asp form where one element is a list box which lists four years starting from 2004. This list is drawn from a database table which has YearID and Year as two fields as shown below:...
13
69978
by: deko | last post by:
I have a basic feedback form with a submit button. After the "send" button is clicked, I want the user to be redirected to a different page that says "Your message has been sent." How do I do...
27
4679
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
4
2607
by: Greg Scharlemann | last post by:
I'm trying to setup a dyamic dropdown list that displays a number of text fields based on the selected number in the dropdown. The problem I am running into is capturing the data already entered...
6
3470
by: mcl | last post by:
I have a domain name which is set up for web forwarding with a frame. I have a link on one of the site's pages to an external site. When I select the link the external site is displayed correctly...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.