473,503 Members | 10,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to give direction to another page in php

20 New Member
i am facing problem at after checking the user name an password with the db if it exists want to inner page pls help i am new in php
Sep 8 '09 #1
3 2625
Dormilich
8,658 Recognized Expert Moderator Expert
some help
Sep 8 '09 #2
ujwalarali85
13 New Member
do you want to redirect from one page to another ? If am getting you right then we can do this by follows:

if you are in page1.php and want to redirtect to page2.php then write
header("location:page2.php");
Sep 13 '09 #3
TheServant
1,168 Recognized Expert Top Contributor
Just make sure that there is **NO** output before that. If there is any html, echo statement, etc, you will get a nasty error saying that headers have already been sent.

Generally you can always organise your code to use header() but if you cannot, you can do a cheap trick with meta redirect and php exit()... See how you go with header() though.
Sep 13 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1273
by: Graham Blandford | last post by:
Hi All, wonder if anyone can help me with some direction... I'm a VB6er who has been plunged into the VB.NET arena with a requirement to complete a reasonably small project within a month.. The...
18
2475
by: free2cric | last post by:
Hi, I attanded an interview on C++ Question asked were and my answers to them.. 1. In a CPP program what does memory leak occure? -- i said.. In a constructor , the pointer variables were...
1
5158
by: VBSponge | last post by:
Hi all. In A2K i have a report with a control bound to to calculate the page count for the report. I need to retrieve this page count from the report, and build it into a TOC containing this an...
10
1500
by: Mike Hnatt | last post by:
How can I refer to MyTextBox.Text which is located in mycontrol.ascx from within mymainpage.aspx? (i.e, mycontrol.ascx is a User Control located on mymainpage.aspx). Thanks! Mike
3
1231
by: Irfan Akram | last post by:
Hi People, Wondering whether there is a way of being transferred to another aspx page, after waiting for a couple or more seconds, rather than being transferred immediately. For example...
4
1038
by: Peter | last post by:
Howdy, I have alot of programming experience but do not have alot of experience with ASP.NET web pages. What I am tasked to do is build a web page that has alot of marketing survey questions....
18
7323
by: junky_fellow | last post by:
Hi all, Is there any way by which we mat determine the direction of stack growth (from higher address to lower address Or from lower address to higher address) ? I know this question is...
3
2466
by: Charlotte | last post by:
Hello, info: I'me a rookie with IIS I have on a WinXP Pro the IIS installed, so I can test some pages before uploading to the hostserver online on the hostserver is a possibility (with the...
2
4363
by: RufusA | last post by:
Is there any way of getting float statements, padding etc. to take account of the directionality of a page (i.e. the direction:rtl ) For example I have an old simple web page that uses *shudder*...
0
7095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.