|
Posted by Jerry Stuckle on 11/16/06 22:59
casper christensen wrote:
> Pedro Graca skrev:
>
>>casper christensen wrote:
>>
>>>Now how do I make the form "linking" to another site. (after submiiting
>>>it should go to like a thank you page)?
>>
>> <?php
>> // deal with submit data
>> // do not output anything!
>>
>> // redirect to "thank you" page
>> header('Location: http://www.example.com/thankyou');
>> exit(0);
>> ?>
>>
>>--
>>I (almost) never check the dodgeit address.
>>If you *really* need to mail me, use the address in the Reply-To
>>header with a message in *plain* *text* *without* *attachments*.
>
>
> Hi
>
> thanks for the reply. Unfortunately this doesn't do me any good. I need
> a code so when the submit button is clicked it should go to my desired
> page. Also It must perform the actions already coded ( adding the
> information to the database and so on.)
>
> This must be possible.
>
> Casper
>
(Top posting fixed)
Casper,
That's exactly what Pedro's code does. Put it after the code to add
your info to the database.
The only think you need to be careful of is that NOTHING is output to
the browser before this call. No messages, no whitespace, nothing.
Then when it gets to this code it will instruct the browser to
automatically request the page "thankyou".
P.S. Please don't top post. Thanks.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|