You are here: Re: Novice needs help :) « PHP Programming Language « IT news, forums, messages
Re: Novice needs help :)

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация