Re: Re: Headers, JavaScript & PHP
| From: | Kamil Nowicki | Date: | Thu, 11 Oct 2001 12:14:27 +0000 |
| Subject: | Re: Re: Headers, JavaScript & PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70784@lists.php.net to get a copy of this message | ||
The problem is, that 'topic.php?id=exit_id_values' still appear in URL.
> I do this quite a lot with some of my form submission (especially when
using
> it for forums). I'll give you that as an example:
>
> post.php - the posting page. User enters data
> take.php - the file that processes the data
> topic.php - the topic file
>
> take.php is where all of the action kicks in - simply, it looks like this:
>
> <?
> if (!$some_sort_of_error) { // no errors reported
> header("Location: topic.php?id=$exit_id");
> exit;
> } else {
> } ?>
> > Is there a way to make a page autosubmit (autoredirect
> > to another page with POSTing data) without staing in
> > browser history? (Something like JavaScript:
> > window.location.replace('url') but posting values.)
--
Kamil 'Hilarion' Nowicki