Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

2 questions how to open a webpage, and a form question

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

2 questions how to open a webpage, and a form question

Postby 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
New php-forum User
 
Posts: 4
Joined: Mon Dec 16, 2002 11:34 pm

Postby 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
User avatar
fabrizzio
New php-forum User
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: Bing [Bot] and 11 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.