Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
by Jabolin » Wed Dec 18, 2002 12:06 am
Ok so I have a php script that is ran. At the end of the script how do I get it to open another window containg a certain webpage?
Second question I have a variable that I want as the default value in a text field in a form. I know that I can set the value =" what ever" but if I want a varible like value="<?php $somevalue>" it does not work...
-
Jabolin
- New php-forum User

-
- Posts: 4
- Joined: Mon Dec 16, 2002 11:34 pm
by fabrizzio » Wed Dec 18, 2002 4:42 am
1- use header("Location: some.php")
you must use this function before any other header is displayed (see reference manual)
2- use <?php =$var?> or better <?php echo $var;?>
fabrizzio
-

fabrizzio
- New php-forum User

-
- Posts: 10
- Joined: Fri Dec 13, 2002 2:22 pm
Return to PHP coding => General
Who is online
Users browsing this forum: No registered users and 3 guests