Index.htm Going To Login Page And Sending Back To Index Page
1: A visitors visits a.html page. decides to login and post comment. goes to login page and logs in then I want to send him back to a.html page how do I do that? Here is my login page and login.php page.
2: Same as above but I want to send them back after some time... while I make them view the error, why they have not been able to login. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Want My User To Have To Go Back To The Index Page As Soon As They Login.
I am having a little trouble intergrating a login/user management script with my html pages. I have used the div tag put in my php in there and put the rest of the php where it is originally placed in the script. Here is my problem. I would like my user to stay on the same main page while the login part changes(goes to the members area). I have tried using i-frames but if there is a link in one, the main page does not change the i-frame does. Can this be solved with more php. I do not want my user to have to go back to the index page as soon as they login.
View Replies !
Index.php Page
I just installed PHP 5.2.3. I'm trying to go to my index.php page by typing http://localhost/ but i'm just getting the listing of files in that directory.
View Replies !
A To Z Index Page
I'm trying to create an A to Z index page and i'd like to know how to make the query search for words starting with a letter. I want something like [A] [b] [C]....[X] [Y] [Z] and when the user clicks a letter all the words starting with that letter should be displayed.
View Replies !
Will Google Index My PHP Page?
I'm building this forum, where its like Vbulletin (viewtopic.php&topic=xxx), and it displays the posts for those topics Will Google index my pages, if they are ALL php? They are all generated like that above.
View Replies !
Doesn't Like Index.php For Main Page
I've built a website and some of the pages are php pages (e.g. SomePage.php). It all works fine; both the html pages and the php pages come up and work just fine. I then made a change to the main index.html file and made it so that it's an index.php file instead, and it has some php code embedded in it, not much different than any of the other php pages on my site. But when I try to go to that index.php file, as the first file to bring up for the site, it fails to bring up the page but instead pops up an Open File dialog, asking if I want to Open or Save the index.php file. It's as if the server is not recognizing index.php as being a php file that needs the normal php pre-processing on the server side. I used to get similar prpoblems with the other php pages before I had my server properly set up with Apache and php and such. But all of that is indeed properly set up. The OTHER php pages come up OK. It's just the very first, index.php page, that doesn't come up correctly. What am I doing wrong?
View Replies !
Index.php?=page & Menu
I currently am new sorta in the php field. Basically I haven't really made my own php scripted site. So I am learning as I go. I want to do something that shows like: www.mysite.com/index.php?=hosting Then on the hosting page I would display my content. Ho would I go about doing that and including a right and left side menu?
View Replies !
If Statement - Page = Index
What I'd like to do is, on my website on the initial page, the index, I don't want to link back to the index to be a link. If there is a: If page = index then link not enabled else link enabled sort of possibility in php.
View Replies !
Index.php?page=somthing
I am wondering how people make sites that appears to have one document index.php and they navigate with index.php?page="somthing" I would like to implement this in my own site but I don't know how
View Replies !
Switch To Index Page
i am making awebsite that runs more a less from the index page so i am using for links. <a href="index.php?=id"> switch ($HTTP_GET_VARS[id]) { //default = news default: include "news/news.php"; break; //guides case 'guides': include 'guides.php' break; //contact case 'contact': include 'contact.php' break;
View Replies !
Directory Onto An Index Page
I'm just looking for some simple code that will take the contents of a directory, say /junk and print them onto a page for me, like junk.htm, so my friends have easy access to files I post.
View Replies !
I Want The Page To Go Back To My Login Page.
I want to logoff my application and I have set up a link to do this. I got it to destroy my session, but I can't get the page to go to the top of the browser and do a page refresh. Here is the code I am using. First there is the link I am using. printf("<a href="%s?logoff=%s">%s</a><br>", $_SERVER['PHP_SELF'],"logoff", "LOGOFF"); Here is piece I use right at the top of the script to destroy the session and try to refresh the page. if (isset($_REQUEST['logoff'])){ session_destroy(); $_SERVER['PHP_SELF']; } What do I have to do to get the refresh to work?
View Replies !
Solution For Redirect At Page Index
by php which the fast solution for make redirection at homepage ? Time ago read some solutions, but one most fast because not load or not make a reload of itself page, not remember exactly but was a solution more fast...
View Replies !
Authentication - Get Redirected To The Index Page
I want people to have to go through my index page, so that if they try to go anywhere else, they get redirected to the index page. But once they click agree on the disclaimer, they can go everywhere. I assume this means sessions, but it might be something else, I'm not sure.
View Replies !
Index Page Query From PHP Newbie
index.html page I wish to have a link called "Today's message" that contains a bit of PHP to fetch the message of the day. I have this working from a daughter test page which has the extension .php. When I implement this link from my Home Page I want the Home Page to still be named index.html How would I implement my desired operation?
View Replies !
MYSQL - Link To An Index Page
I'm working on a site which has several hundred articles stored in a MySQL database. On the bottom of the page are two links for the previous and next article. The site has been constructed in such a way that the database has fields containing the url of the previous and next pages (i.e. article.php?recordID=137) and these are pulled out of the DB in the form of links. Rather than them having to add this to the DB every time a new article is added I'm trying to automagically do it in PHP. I've sorted the main part by taking the current article and either subtracting or adding it's ID by 1 to create the prev and next but I'm a bit stuck when it comes to the current (highest) article number. What I want it to do is link to an index page when there is no +1 (or -1 for the start).
View Replies !
Mod Rewrite - Not Opening The Index.php Page
I have mod rewrite working perfectly fom my main folder but I have another folder called admin with an index.php page in there with other pages. I am having trouble with my mod rewrite so when I enter www.mydomain.com/admin/ it's not opening the index.php page within the admin directory Code:
View Replies !
PhpBB - Making A INDEX Page
phpBB - Making a INDEX page i need to make a index page with all the recent posted topics ok. http://srilankans.hugetop.com/forum thats my web site and i need to change the index from that to recent posted top 10 topics.
View Replies !
$HTTP_REFERER Not Working On Index Page
I'm using $HTTP_REFERER in various parts of my site and it works well. When I use $HTTP_REFERER on my index page to see where members are coming from before they log into my site it won't work. Perhaps this has something to do with the previous page being from an outside site?
View Replies !
Creating A Custom Index Page
Is there any function that when given a directory name as its argument, returns an array containing the names of all the files in that directory, or all the directories in that directory, or both (as a multi-d array, I'd expect)? I assume such a function could be used on the directory the php program running it is contained in, yes? (If yes, please be clear on how.) Code:
View Replies !
User Based Index Page
Both the users have same home page main.php.After logging with user1 only index1 page should be opened and with useer 2 only index2 page should be displayed. Code:
View Replies !
Multiple Index Page Work
I'm trying to figure out how/what this site is doing to have a dozen different index.php pages. All the pages are: domain-name.com/index.php=page-name I'm guessing that this is being done to gain some advantage in search engine results. Is this right.
View Replies !
Changing Pictures On Index-page When Reloading
I am a beginner but quite curious anyway. My problem: I have seen websites that show different pictures whenever you enter the site. By doing this, the sites look always fresh and attractive and I like the idea a lot. Now I like to have the same function on my site but I do not know how that works... Is there anybody who can give a good "explanation for dummies" on how to do that?
View Replies !
Display My Content Pages WITHIN My Index Page
Basically I have a layout index page. What I want to accomplish is display my content pages WITHIN my index page and I dont want to use iframes. Code: <?php if(strstr($id, "..") || $id[0]=="/") $id = ""; if(empty($id)) $id = "/home/vbd/public_html/home.html"; else { $id = $id . ".html"; } if(is_file("$id")){ include("$id"); } else include ("404error.html");?> I'm formatting my links like this: Code: <a href="index.php?id=news">News</a> And heres what's happening, the home page work as it should but none of the links are working.
View Replies !
Include() - Store The Text In The Index Page
I have a index.php page that has some text on it and I also have a edit_index page. From edit_index you can edit the text on the index page. But I don't want to store the information in a database or a text file but instead want to store the text in the index page. Since the index page is PHP i made a variable at the top named $index_content and that holds the current text. What I want to have happen is for me to be able to, from edit_index, is edit the variable with the new text. So when I hit submit on edit_index I want it to call up index.php and redefine the $index_content variabled stored in the page. But i don't know how to write to a page like that when it's not apart of the script being executed. I tried require(), but that didn't work, and I tried include() but that didn't work either. Is there some way to do this that i'm not aware of?
View Replies !
Blank Page Caused By Undefined Index
I upgraded my php from 4.4.7 to 5.2.4 and now the entire website doesn't work. So I am trying to learn PHP and go through the site one error at a time. If you have a idea why the upgrade caused the site to fail that would be great. But in the meantime this is the problem i am stuck on. I get this error now when transferring to a page Notice - PHP Notice: Undefined index: REMOTE_ADDR in c:locationSession.php on line 45. That line has the following code. $GLOBALS["$SessionName"]=md5 (microtime() . $GLOBALS[REMOTE_ADDR"]); Like I said this code worked before the upgrade. Any idea what I can do to fix this problem?
View Replies !
Index.php?page=download Vs Header An Footer
I've been programming for a couple of years, but still I'm not sure which is the best solution. solution 1: index.php?page=download - here you call you index and it will load a page in it solution 2 download.php - here you load download.php and you load the menu etc with header.php what do you think is the best solution? and why?
View Replies !
Find The File Name Of A Remote Site's Index Page
How do you find the file name of a remote site's index page using PHP...so, given that I have a domain name of www.yourSite.com, the file name might be: index.php index.htm index.html index.shtml index.cgi index.pl .....etc., etc.... How do I figure out which one it is?
View Replies !
Use Files As Includes From My Index Page Where The Constant Is Defined.
Sample of code: if (defined('constant')) { // show content } else { header("HTTP/1.1 404 Not Found"); } I am trying to do is, use files as includes from my index page where the constant is defined. What I want to happen is if a user trys to goto blah.php directly, instead of /index.php?page=blah they receive a 404 error, and are sent to the 404 file not found page.
View Replies !
Links Stopped Working - Use PATH/index.php?p=PAGE In My URL
i have just moved my website from one server to another, on the first my pages worked perfect (not considering markup) but now my links just won't work anymore... i use PATH/index.php?p=PAGE in my URL, it worked well on the other server, but after i switched it just stopped working... and i have no clue where to find the error... it just keeps showing the first page...
View Replies !
Back Referencing To Get An Array Index?
My website needs to allow users to specify where a thumbnail image will appear in the text ($articleText) they submit. The thumbnail filenames are held in a single-dimensional array called $photos e.g. the users are to type [thumb4] to specify they want thumbnail four ( from array position 4 ) I was hoping the following expression would work, but it doesn't. The returned text always includes <img src="thumbs/"> i.e. no image filename is inserted. (I was expecting something like <img src="thumbs/dave.jpg"> ) $articleText = preg_replace("/[thumb(d+)]/", "<img src="thumbs/".$photos[$1]."">", $articleText);
View Replies !
Sending Form Data To Index.?pid=pm
I'm trying to send form data using the GET method to a page with variable in the url allready. PHP Code: "<form action='".$_SERVER['PHP_SELF']."?pid=pm' method='GET'>"; The pid variable does not get sent. When the page reloads the url is: index.php?mark=DELEATE+IT&submit=GO
View Replies !
Undefined Index: Login
I have a form and am trying to get a login working by setting a session and then echoing out some information on the following page to test to see if it is working. I am getting an error though when I try to echo it out. I am not sure if the problem is in how I am setting the session or what. Here is my login and below that is how I am trying to echo it out. Code: <?php session_start(); require_once('../Connections/prbc.php'); if(isset($_POST['login'])){ $username = '' $password = '' if (isset ($_POST['username']) && $_POST['username'] != '') $username = $_POST['username']; if(isset ($_POST['password']) && $_POST['password'] != '') $password = $_POST['password']; $username = mysql_real_escape_string( $username ); $password = mysql_real_escape_string( $password );........
View Replies !
Index.php?inc=2 Messing Up My Auth Login ?
I am trying to use a drop down menu to dynamicly load a page include. The code I have for this has worked fine elsewhere but in this case I have phpauth running in the area where my menu is and everytime I try to select an option it is taking me back to my login page. Any ideas why ? Code:
View Replies !
Supress Errors At The Page Level? Undefined Index Errors.
I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in c:inetpubwwwrootmackinawsurvey.php on line 36" even if in the code I allow for an unselected item. (Code at the bottom here.) It works fine otherwise. Now in the past I've made a change to php.ini to repress errors, but for this project I don't have access to the php.ini. Is there a way to supress errors on that page for that session? Or, is there a way to just not get that error at all? Here's a sample of the code that gets the form response. If an item is selected, no error for that question, but if an item is not selected I get the error above even though I still get a successful echo for the "else" or "default" option which occurs if nothing is selected: $rb_visited = $_POST["rb_visited"]; //Have you ever visited Mackinaw City, Michigan? if ($rb_visited == "1") { $rb_visited_reply = "Yes"; } elseif ($rb_visited == "0") { $rb_visited_reply = "No"; } else { $rb_visited_reply = "You did not answer this question"; }; $rb_lastvisit = $_POST["rb_lastvisit"]; //When was your last visit to Mackinaw ity? switch ($rb_lastvisit) { case "1": $rb_lastvisit_reply = "Earlier this year (2003)"; break; case "2": $rb_lastvisit_reply = "Last year (2002)"; break; case "3": $rb_lastvisit_reply = "2 years ago (2001)"; break; case "4": $rb_lastvisit_reply = "3 years ago (2000)"; break; case "5": $rb_lastvisit_reply = "4 or more years ago (1999)"; break; default: $rb_lastvisit_reply = "You did not answer this uestion"; }
View Replies !
Login Problem - Can't Login(login Is Done In Index.php)
This is origially PMsys, I have edited it, and here is what I have done with the original replace all $_COOKIE into $_SESSION changed all setcookie() into session_start() and defined those $_SESSION now the problem is I can't login(login is done in index.php), does anyone here got an idea why? I uploaded the whole pakage, but I think you only need to look at index.php and include/global.php.
View Replies !
Page Expired After Going Back From Del. Pageto Form Page Where Comment Is Submitted..
i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history.. When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says: Page has expired. I wondered how to deal with this kind of problems........
View Replies !
Page Has Expired Message In Between The Php Page When I Click Back In Explorer Menu
I have a php script page, which is basically quiz. Visitors (after login in with their email address) are supposed to answer each question, and when they click the button at the bottom, the next page will show which problems they got right or wrong. Now my visitors, after seeing some problems they got wrong, click Back button at the Explorer menu, and if they do, they get the below message: ========================= Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. ======================== Below are the script that I am using. This scripts are after initial login page, which asks for visitor's email address. I have authorized visitors already in my MySQL table, and only the visitors whose email address is in my MySQL table are allowed to login......
View Replies !
Which Index To Use - Primary Key, Index, Etc
I have the following tables (simplified example): countries: code_country (char-4) , name_contry) breweries: code_brewery (int-4), name_brewery) coasters (code_coaster (char-8), description, code_country, code_brewery) code_coaster is formed by the combination from code_country + a correlative number: for example CH-33, INDO-102, etc How should I define the indexes so that the querries will be optimized? I've thought about the following: code_country: unique in table country code_brewery: unique in table brewery code_country: index in table coasters code_brewery: index in table coasters code_coaster: unique in table coasters I don't really understand the difference between primary key and unique. Should I use primary key instead of unique?
View Replies !
Index.php Vs Index.html
index.php vs index.html Is there any reason for me to have two pages? If my site is in PHP, is there a situation where the browser won't go to an index.php page?
View Replies !
|