changing url

i want to update the url after form submission using the get method in the same file.

for eg

http://localhost/task04/index.php?name=foo&age=bar

when updating the values to foobar and barfoo respectively, and on form submission, the new page must contain the URL

http://localhost/task04/index.php?name=foobar&age=barfoo

please help

You can use

[php]
header(“Location: [your_changed_url]”);
[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service