Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





How To Open Page


I want to send the browser to a differnet page how do i do this with php? it's an if statment

if true send to example1.com else send to example2.com.




View Complete Forum Thread with Replies

Related Forum Messages:
Script To Open A Small Page When Loading A Large Page?
the idea is a script that loads when a large page is trying to open that need for example 5-6 mins to load and in the mean time to open a very small page that is saying loading the page please wait and when the large page is loaded to go directly to that page. Do u get my idea?

View Replies !
Open A New Page?
I have a small problem, this is my current script:

{$_SESSION['login'] = $_POST['login'];
$login='You are now logged in <b>' . $_SESSION['login'];}
else{
$login= 'Wrong user name or password.';}

If the user name or password is incorrect, it will just display Wrong user name or password. But what I want it to do is have the browser open a new page if it is incorrect, for example incorrect.php. Which will then display an incorrect user name or password message. This shouldn't be too complicated, I just have no idea how to go about it.

View Replies !
On If Statement Open .htm Page?
how to open a preset page from an if statement, such as:

if ($row["password"]==$password ) {
printf("Successfully Logged In!");
}else{
print("Login failed!");}

where instead of just printing the text string it opens a new page!!

View Replies !
IE Ask To Open The (php) Page As File
I just uploaded a new website onto a new server. On this server however, when you click on the only 2 php pages. IE will ask to open the page as file. Is there a simple way to fix this, or is it simply the new server that can't support php? The two pages are just a simple email form.

View Replies !
Open A Page In Grayscale On Mac...
I've having a serious issue that I need your help with as soon as humanly possible.  I have a page that has some products on it, when the product is clicked, it opens up the printable version along with the print dialog box for printing. My problem is, I need the page to open up in grayscale. It's working in IE, but it's not working in Fire Fox, and it's not working on Mac. 

View Replies !
Orig. Page Open
Usually when I use header it just replaces the current page, but now with this code it opens a new tab in firefox and puts in the page there, leaving the original page in the original tab. What can be the cause of that? code:

if ($_REQUEST['returnitems']) {
header("Location: http://" . getenv(HTTP_HOST) . "/index.php?section=admin&action=returns"); }

View Replies !
Open Page In Frame
i would like to open a page always inside a frame. This can be achiieved with a simple javascript

<SCRIPT LANGUAGE="JavaScript">
<!--
if (self == top) {
location.replace("index.htm");
}
// -->
</SCRIPT>

However this can cause a popup depending on the user's browser settings

View Replies !
Can't New Page To Open Using Button
Here is the code I have. Does anyone see anything wrong with it? It won't go to the url when clicked. Code:

View Replies !
Open Feedback Page
i am trying to open feedback page after a user visiting a particular site( that means when a particular user close all pages after see the ste and at last i want to open the feed back page).

View Replies !
Open And Process Remote Page
I want to be able to ask users for a URL, open that page, change some of the
contents and then display that page as if they had typed the URL into a
browser. I have toyed with some of the php functions for opening URLs, but
what I am not clear on is how much work my script will have to do (do I need
to fully emulate a browser, for example).

The net effect I am after is very similar to the page translation feature
that Google offers. Does anyone have any examples of this kind of technique.
Any ideas how much work is involved? (My 'translation' is pretty trivial, so
really it is mostly a question of how much work to display the remote page).

View Replies !
Open A Page Using The Function Fsockopen()
I try to open a page using the function fsockopen(), however I the following output appears: "HTTP/1.1 302 Moved Temporarily". How can I get past this?

View Replies !
Shortest Code To Open A Web Page From PHP
I have Windows Vista and PHP with Curl.I would save a web page on my harddisk with a PHP command-line command. What's the more minimalist way to do it?

View Replies !
Open Link In Included Page
How to include Link that could open in same page rather than going to another page


for example, if i include a file in home.php

 <? include("/index.php") ?> and I want to open up the LINKS in  "index.php"

in same home.php.

example   - open    "/index.php?p=Hits"  on same home.php page

I know i could have FRAMES but i dont want to frames in my site

View Replies !
How To Get Rec Id And Use Header() To Open New Page And Pass Rec Id
1. After the record is inserted I would like to open page_add.php and pass the record id (there is an auto_increment field in the table called ID) to the new page "page_add.php". I was thinking of using header() to open the new page and passing the id as parameter (i.e. page_add.php?rec_id=what ever) is there a better way to do this?

2. how would I get the record id after I store the new record?

3. Also not sure how to write header() with a variable in it?

Code:

View Replies !
Web Page Open Up Automatically Using An If-statement
I was wondering if there was a way to have a web page open up automatically using an if-statement, either as a pop-up or just going to the page in the current browser window?

View Replies !
How To Open Random Flash Page Using Hyperlink?
I'm new to using PHP so please bear with me.

I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh yeah, I'm not using a database either.

// random_menu.html
<head>
<?php
$i = rand(0,3);
?>
</head>
<body>
<a href = "www.x.com/random.php?i=$i">x</a>
</body>
---------------------------
// random.php
<head>
<?php
$i = $_post["i"];
if ($i = = 0){
$value = "a";
}
else if ($i = = 1){
$value = "b";
}
...etc.
</head>
<body>
<object>
<param name="movie" value="$value">
<embed src="$value"></embed>
</object>
</body>

Please help if you know how to do this.

View Replies !
Text File To Popup Or Open In A New Page
I have a form which takes user input. On submit, the form will run a
php script that will create a new text file using the user input.

I want this text file to popup or open in a new page. The problem is
that when the page opens it still shows the old text file, i need to
hit refresh for it to show the last user input.

the html file (greatly simplified):
<html><head>
<title>Untitled</title>
</head>
<body>
<form action="action.php" method="post">
<p>Title: <input type="text" name="Title" /></p>
<p><input type="submit" /></p>
</form>
</body>
</html>

The php file (simplified as well):
<?php

$spot_code = $_POST['Title'];

// Open the file and erase the contents if any
$fp = fopen("myfile.3dml", "w");

fwrite($fp, "<TITLE NAME=" . '"'. $spot_code .'"'. " />
");

fclose($fp);

//redirect
header( 'Location: http://localhost/mytest/myfile.html' );

?>

the text file, myfile.3dml is embedded in myfile.html (it requires a
plugin to view - it's a 3D world). When myfile.html is opened it
displays myfile.3dml but it needs to be refreshed to show the current
input.

View Replies !
Search Script - Open A New Page Showing All Fields
let's say i have 3 fields : name , sirname , age.name is primary.i need to click on the result ,for example : george , and open a new page showing all fields.for example george lucas 35.Any ideas? Code:

View Replies !
Setup A Page When You Open A Drop Down Menu Of Options
How do I setup a page when you open a drop down menu of options, select an option and then an image on the page changes to the selection you landed on. Code:

View Replies !
How To Open Page And Make Sure Users Sees The Right Information
I'm making a website where registered users can upload a photo as well as information. The main page will display all of the users' photos. When user1 clicks on, say, user5's photo i want a page to open up and user5's information to be displayed. Is there a way to do this? Code:

View Replies !
How Can I Open A Source Of A Page (.html, Javascript ) In A Textarea
I need to find out how can I open a source of a page (.html, javascript ) in a textarea, edit the page and then submit it back to the server.

View Replies !
Open Popup Window When Page Is Loaded If A Field Is Populated
Would it be possible to open a popup window on loading the instruction page but only when the critical information section of the page contains text?

The popup window could either contain the contents of the critical information section or just a visual warning that such information exists on the main page.

I have a pretty good knowledge of VBA but sadly my knowledge of php and javascript is very limited.

View Replies !
Set The HTTPS Username And Password Using Php/flash And Then Open The Secure Page.
My hosts allow secure https logins on specific directories. What I want to do is have a login screen in flash, if the user enters the correct username and password I would like to set the HTTPS username and password using php/flash and then open the secure page.

In my mind at this point they'll be logged in and then can navigate the secure page without seeing the browsers https login dialog. Am I kidding myself, or is this possible?

They're config is the following:
PHP Version 4.3.11
4.9-STABLE FreeBSD
Zend Engine v1.3.0

Apache/1.3.33 (Unix) PHP/4.3.11 mod_ssl/2.8.22 OpenSSL/0.9.7c
FrontPage/5.0.2.2635 mod_throttle/3.1.2

View Replies !
Page To Open In The Webshops Main Frame Instead Of Opening In A New Window.
When the user register himself for a newsletter at my webshop the webshop sends out an email with an activationkey. When the user clicks the activationkey in the email I want the page to open in the webshops main frame instead of opening in a new window. Is this possible?

View Replies !
Automatically Open Default Mail Program And Insert The Current Page Of Browser As The Body Of The Message.
On my website I would like the facility to click on an image or text that will automatically open up their default mail program and insert the current page on their browser as the body of the message.

I realise that most browsers will have this facility already but I would like to add my own method. Problem is, I have no idea on how to achieve this. I'm sure it can't be that difficult though. It maybe can be done just using HTML, I don't know.

View Replies !
Open On Open / Save Box Dont Work With Download Script
I have a download script. I'm storing files above webroot and using download script for making files available for download to users.

Now the problem is that when file download open/save dialogue box comes... if the user clicks on save they can save the file and then they can open it without any problem . But if they click on open then they can't open the file. It says file path not found or there was some error file could not be open.....

View Replies !
How Many Connections Are Open And On What Pages They Are Open.
I know why I am getting this message. Is there any code I can write up to find how many connections are open and on what pages they are open.

View Replies !
Pass A Function As Array(&$sess_handler, 'open') Instead Of '$sess_handler->open'
In the function session_set_save_handler I can pass the name of function which deal with session. In Xoops code I see the use of this function like that: Code:

View Replies !
Open XML Without The XSL
Is there a (simpel??) way to open an XML file WITHOUT parsing the XSL file
in php?

The file i want to open is:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/layout/item-info.xsl"?>
<page globalSearch="1" lang="en_us" requestUrl="/item-info.xml">
<itemInfo>...

View Replies !
Open A URL
I'm making a form and after they click submit, I'm using an if/else statement to verify that the username and password they entered are correct, if they are, I want it to open a specific webpage and then in the else statement, show a message and redirect them back to the form page. How do I use php to open a URL?

View Replies !
PHP Open XML
There is a new library to make Microsoft Office documents in
http://oxml.110mb.com

View Replies !
Open New Url With PHP
Ive never atempted or looked into using php to open a new page so i have no clue. I was wondering if anyone does know of a way of opening a new page with php? I wish to open up a new window when the user logins Also if your able to send $_POST data as well

View Replies !
How Can I Open .exe?
How can I open .exe -file? I need only an simple php -code.

View Replies !
I Cant Open .php
how can i open a .php in firefox or IE, or anything. If i build my webpage offline i cant even look at it without changing things to html. I really dont care if the php scripts run i just want to be able to view the webpage offline.

View Replies !
Open New Url
I use php in the most basic of ways and I have now come up against a hurdle. I have an html form from which visitors can select a country from a list. Each country is assigned a value:

<form action="http://www.example.com/world.php" ...
<option value="1"> USA </option>
<option value="2"> Brasil </option>, etc.

In the world.php I want the php code to redirect the browser to open that country's website. Should I assign the country's URL to the value, should the url be in the world.php file?

View Replies !
Open My.cnf
I would have some configuration need to be done in the file of my.cnf in xampp.However it showed as a SpeedDial in Windows,how can I open it?

View Replies !
Open Pop-up
i am designing a page with some compulsory fields in it, i want to open a pop-up window without using any java script function. how can i do that by using any PHP code. my aim is to go through the mandatory fields if javascript is disabled thru the browser settings. i want to open it thru PHP.

View Replies !
How To Open An Image
Does anybody know how to open an image (gif/jpg) end echo its size?

I know the syntax for gifs, but it do not work on jpegs.

View Replies !
Open Word From PHP
I am trying to open up word documents, in word, from php. The documents are stored on a web server and access by web dav. when I try opening from php the word documents open in a web browser. If I open word then paste the url in it will open the document in word.

Does anyone know of a way of sending a file and getting it to open in word rather than a browser from php.

View Replies !
Open Source CRM
Is any one aware of any light weight open source CRM in PHP? It will be
great to take a look at one of those.

I have seen SugarCRM its nice but really huge. Something small to track
customers their complaints and their messages is what I am looking for.

View Replies !
File > Open
I need to open a file called news.txt, copy all of it's contents into a $string then write $string2 to news.txt then add $string to the file, example:

contents of news.txt:
Hello today
How are you
Top of the morning.

I want to add the line 'Goodbye' before Hello today in the news .txt file.

View Replies !
Open Passwords?
Suppose I'm using a MySQL database, I need to keep the login and password I use to connect to it. Normally I'd do this through a config file protected be .htaccess or a variable in the php code. In both cases there would be no way for the user to access the information via HTTP. However there remains the problem of FTP access.

Anyway encryption wouldn't do any good either since both the algorithm and key would have to be stored in the same fashion. I was wondering if anyone has found something close to a solution to this problem?

View Replies !
Open Source BTS?
I am needing to install a bug tracking system on a web server and looking for
a good PHP open source solution. Looking for a pretty mature system that
still has active development. Thanks for any suggestions.

View Replies !
Open Db Connection
I'm trying to close unnecessary db connection to reduce the concurrent
connection. Is there any way I can find the open connection?

View Replies !
Index.php Does Not Open Up
in PHP and I am enthusiastically trying out things. I've
just replaced my

index.html (

file with

index.php

with of course a few lines of php code, which I am sure they are all
correct as far as the syntax goes. I expect the file (index.php) to be
loaded in to the browser window upon launching the browser. It's not
doing that; instead, it loads the apache index file. (Oh, I forgot...
I am running php 5 and apache 2.xxx and modified idex.html to
indexHtml.html to avoid the webserver serving the page). I guess that I
need to insert a line somewhere in the apache config file but I don't
how...

View Replies !
Open New URL In If Statement
How do I automatically open a new URL based on a condition being met ? i.e. what should the line 'open URL ... 'state? Code:

View Replies !
How To Open A File
I want to open a file which are situated on server see in c or d
and I know the file how can i use php to open particular file and copy
paste in my computer or user's computer.

View Replies !
Set Up The DNS But Cant Seem To Open The Database
I am trying to connect to a MS Access database with PHP. I have set up the dNS but cant seem to open the database. Do I have to make any adjustments in my php.ini file.

View Replies !
PHP Open Tracker
Has anyone used PHP open tracker for Web traffic analysis? How is it?

View Replies !
How To Open A Dialog Box
How can i open an authentication dialog box. I used the following code:

<?php

header('WWW-Authenticate: Basic realm=Private');
header('HTTP/1.0 401 Unauthorized');
exit;

?>

This keeps giving an error message like:

Warning: Cannot modify header information - headers already sent by (output
started at /var/www/html/inlog1/form.php:2) in /var/www/html/inlog1/form.php
on line 4

Warning: Cannot modify header information - headers already sent by (output
started at /var/www/html/inlog1/form.php:2) in /var/www/html/inlog1/form.php
on line 5

What am i doing wrong

View Replies !
Open And Read Dir Over Web
what is the equiv. of opendir() and readdir() etc to read directories on another server, if poss? I want to make a little app where the user supplies a url and the app reads the files in it and does some processing...can I do this somehow?

View Replies !
PHP & Open Connections
I'd like to create a simple chat application that will leave the
connection open for a minute and then restart the connection to the
server to push data. I plan to use temporary .txt files to store
messages. My question is how can I do that in PHP 5, what techniques
should I do server-side to keep this connection open and how would be
the flow of the message? Do I need a different technology such as
Python to handle messages?

1. User A sends a message to the server
2. ?
3. User B receives the message instantly through an open connection

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved