# PHP simple problem to solve

**URL:** <https://forum.kirupa.com/t/php-simple-problem-to-solve/177156>\
**Category:** Uncategorized\
**Created:** [January 30, 2006, 7:09pm UTC](https://forum.kirupa.com/t/php-simple-problem-to-solve/177156 "2006-01-30T19:09:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![worldsound](https://avatars.discourse-cdn.com/v4/letter/w/ee7513/32.png) [@worldsound](https://forum.kirupa.com/u/worldsound)\
**Post date:** [January 30, 2006, 7:09pm UTC](https://forum.kirupa.com/t/php-simple-problem-to-solve/177156/1 "2006-01-30T19:09:25Z")

</div>

**Hi everyone!**

**I use this script for my e-mail forms, but I want you to help with one simple thing:**

[http://www.kirupa.com/web/form\_mailer.htm](http://www.kirupa.com/web/form_mailer.htm)

**I want people to be redirected, but opening a new page (target=blank) and not on the same where the e-mail form is:**

[FONT=Courier New][COLOR=#17274d]$forward = 0; [/COLOR][/FONT]  
redirect? 1=yes 0=no (this is the page you go to after you submit the form. if left on 0 you will see a message then nothing will happen if you select 1 you will see a message then go to the redirect page.)

[FONT=Courier New][COLOR=#17274d]$location = “[yoursite.com](http://yoursite.com)”;[/COLOR] [/FONT]  
This will be the page you are redirected. (if you keep it 0 you do not need one just delete “[yoursite.com](http://yoursite.com)”; and leave “”; instead)

**How can I do this? Please, help me cause I don’t know anything about PHP…** :cross-eye

**Thanks a lot!** :thumb: [FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=2]  
[/SIZE][/FONT]
