Getting HTML Back!
I have a record in a database which contains 'The Enter Key' (moving down a line) in it a couple of times. when i fetch it and echo it on a page, it is like it has changed them for spaces... can anyone give me code to re-HTML it?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Go Back
I have made a delete script which deletes messages and once deleted it comes back "this message has been deleted", how do i make it so i can add "click here to go back to where you was". A bit more info, this is for a simple forum system which has topics which change the url to like topic.php?id=5 so how do i make it so it can link or automatically go back to that page.
View Replies !
View Related
CSV--and Back!
I have a sortable table in PHP that draws its data from a CSV file. This much works. But I have very limited PHP experience and I'm having trouble with this next step: I'd like to create a simple form in PHP allowing a viewer to add a record (a row) in the CSV file. I've been unable to find a script as simple as I'd like--and trust me I have looked. While I am here, are there any precautions you recommend I take in making this table freely editable? I have a login system so I could require users to register before submitting data, but honestly I don't want to hamper anyone from contributing, at least initially. I could use a word/B.S. filter that prohibit invalid entries, if anyone has a script for that or any other anti-spamming measure.
View Replies !
View Related
Getting Back To Where I Started.
I use a login script and since it's accessable from every page on my site I would like the user to go back to the place where he started. I use a template file in which the loginfields are placed and where I call a different .inc for each other page, so it doesn't make sense to hard code the 'gobackurl', is there a function to retrieve the pageurl from where the user came or another solution, let me know?
View Replies !
View Related
Welcome Back....your Last Visit Was...
I would like to add a feature to my site on the main page that says the following: Welcome back, Joe user! Your last visit was July 20, 2002. I figure I could do this by using sessions (which I plan to use for other tasks anyway) and inserting/updating info in a table for user_sessions, but how would I (in PHP) get the last visit info (assuming the user has already logged in)?
View Replies !
View Related
Back After Logout
I have created a web in the 1st page. User can login. After login i start the session and save it in his db-record. Also the page give a link to my important page. In that page I check the saved sid and current sid. If both are equal, it will display some details, that page have the logout link.when user click that link. The logout.php will work. It generate a new sid for the same user. my problem is after logout when the user back from logout.php it will show all contents of the my important page. If refreshing that page it didn`t show anything. So how can i make sure that when the user back it automatically refresh the page.
View Replies !
View Related
BACK Problem
I have a page that takes some parameters. They are used to add items to a cart: add_cart.php?itemid=1234&vid=9876 This takes me to the cart page (as in "View Cart" page.) The problem I have is that if I click on the BACK button, I get another (of the same) item added to the cart because "add_cart.php?itemid=1234&vid=9876" is executed again.
View Replies !
View Related
Back Link In Url
i have a page where the user needs to be logged in in order to use it, so if they are not logged in it sends them to the login page. once they login it should send them to the page they were trying to go to. the problem is that the url keeps the login page and just adds the new url at the end. here is the code any ideas? PHP Code:
View Replies !
View Related
Different Back Grounds
i have a dating website so when a member signs up they get there own profile page almost like every other dating site out there what i what to do is give them the option to change there profile page template to other templates i will have up for them can anyone tell me how this can be done?
View Replies !
View Related
Passing Value Back
I can't figure out how to do it. so if i have this code $count = 5; somefunction($count); echo "$count <br>"; -------------------- somefunction($count) { $count = 1000; } but obviously the echo will print off 5, not 1000, which is what I want. w3schools goes on about the return syntax but that only works when the function is returning 1 value.
View Replies !
View Related
Bounce Back
I am currently writing a login script and I want login.php to send the user back to where he/she was when hitting the "login" button... Just like it's on this forum. If youre logging in while viewing a thread youre, after the login is compelte, being taken back to the same thread. Is there like a bounce back code or something?
View Replies !
View Related
Back Link In Php?
How do I make a link that takes me to the previous page? I have a list of thumbnails, when I click on one of these a big picture shows. When I click on the big picture I want to go back to the previous page, just like pressing the back button in explorer.
View Replies !
View Related
Back Door Php
I am thinking of installing a script on my site from a company called Verotel. I wonder if anyone has looked at this script or would be interested to look at it to check that it has no back doors to my web content. I have attached it to this post as an attachment. You can get it directly from the Verotel website as well. A bit about verotel: Code:
View Replies !
View Related
Cant Use The Back Button
I cant use the back button after entering a thread. Instead, nothing happens. I suspect its those damn popup ads in the right hand column that are preventing me from existing a thread. Can somebody take a look at this?
View Replies !
View Related
Go Back Option
I need a code in php to go to the back page and display the contents which were their. I've only a table in the back page which contains the data derived from database. I've the present code as: <input type="reset" value="Go Back" onclick="resetstr()"> and at the top of the page i've added before <html> the below script. I know its not working.Plz help. <script language="javascript"> function resetstr() { parent.main.location.href="streaminfo.php" } </script>
View Replies !
View Related
Back Button
I have a page in my site where a user give an exam, The problem is that If he wrong answer the q and then he know that the correct answer is C, So he go back and come again to that page and mark C as a correct answer. I dont want that from users. I want that if he or she click on the back button Then a message will comeout that save ur score. OR If he or she click the back button of the browser the page remain the same.
View Replies !
View Related
Session And Back
I'm planning to modify my site from "POST" to "SESSION"....This is because many times, when clicking "back" on the browser, the page has to be refreshed, and I absolutely want to avoid this, also I don't want to use "GET" variables, as they are visible in the URL and I want to avoid this (POST are also visible but not for everyone. session would be hidden) If I use Session variables, will this fix the problem with "back" button ? or may I have the same problem ?
View Replies !
View Related
POST BACK
Can anybody tell me how to get rid of the error when you hit the back button after posting a form. Is it because the form is being posted n i should rather send data thru the URL.
View Replies !
View Related
Back Door?
a friend of mine hired a sketchy dude who turned out to be not just inept but possibly criminal. this guy created a custom 404 page that prompts the user for a little more info about the problem. today, the webmaster at his firm started getting thousands of emails referencing a brazillian transexual porn site (tasty!). Code:
View Replies !
View Related
Back To A Command
is there anyway to return back to a command afterwards e.g. PHP Code: <html> <title> <? /* from later on in the code */ echo $title; ?> </title> ..... <? /* create whatever the title will be here */ ?>
View Replies !
View Related
Back Button Problem
On my development site: http://beta.deluxeportal.com/index.php I'm having some strange problems with the back button... For example, if you try posting and leave out a message, you get an error. You can press back to return to the posting page. This is how it works on most pages, and this is what I want. However, on a very select number of pages (the login page, and the search page), if you get the error message and press back, you still get the screen with the error message. Then, the next time you press back, you are completely taken out of the page. I haven't been able to figure this out, as I can't see anything that makes those pages different from the others.
View Replies !
View Related
'Back' Page After Logout
I'm using HTTP authentication as my login mechanism, and I'm having problems with the logout. It appears to work (as in I get the right message when I've logged out) but pressing the 'Back' button gives me the information on the previous page as though I hadn't logged out at all. 1) Does $PHP_AUTH_USER not get cleared when a "401 Unauthorized" is encountered? 2) Is there any way to force the logout to apply to previous pages (I'm thinking using sessions or cookies perhaps), or do I have to get the user to close the browser window?
View Replies !
View Related
Disabling The Back Button
I have a form that is to be filled. The summit button call a php script that populates a database. Is there a way to make sure that if someone click on the back button on the browser they do not get a chance to send the same form again.
View Replies !
View Related
Back Button And Sessions
When I create a session-based site and hit the back button I get this error: 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. How do I avoid that, or at least create a back button on my page that works like the browser's back button does? Thanks!
View Replies !
View Related
Back Button On Your Browser
My question is based around back button on your browser . Currently I have a form that feeds it's information into a MySql database. I give my users the ability to add, edit, and delete entries. Because of this I use actions on my submit button, ( if action=edit) {blah blah blah} else blah blah If a users make and addition everything is fine, butif they press the back button, the action is carried out again. (because the action is in the url (www.blahhblah.com/form.php?action=add) this puts duplicate entries into the database, which is easy to fix, but annoying. Is there a way with PHP to force the timeout page everytime they try to re-enter the form from their back button?
View Replies !
View Related
$_POST And $_SESSION Back And Forth
I was fighting a bad case of session persistence and found a solution but need to be reassured about is reliability $dir=$_SESSION['dir']; //echo"dir.$dir.<br>"; if ($_SESSION['dir']=="") { $dir=$_POST['dir']; $_SESSION['dir']=$dir; $dir=$_SESSION['dir']; //echo"dir2.$dir.<br>"; } else { $dir=$_SESSION['dir']; //echo"dir3.$dir.<br>"; } forgot stating that the problem was when the original file passed a POST value to other files and then going back to that original file from other locations.
View Replies !
View Related
How To Switch To Ssl And Back Again From Same Php Script?
In one of my apps I handle many functions and pages as opposed to separate scripts for separate pages. Most of the work is non-SSL and works just fine. However, when I am delivering pages with sensitive information the form action parameter references the full URL including the https:// to force the server to process with SSL. This seems to work just fine although there is most likely a better way to do this. Now, my question: Once the SSL part is done and the next page is to go back to non-SSL, how does one deliver the next page non-SSL because the current link is under SSL? Also, to add one more poker to the fire... the SSL site is NOT the same site as the non-SSL site although they're on the same physical server.
View Replies !
View Related
Back And Forward With Sessions?
I am working on a website which is using sessions. What I want to do, is after the user is logged in, or logged out, when pushing the back or forward button not to change its current status(logged or not), if the destination page in history change this.
View Replies !
View Related
Problem With Back Button
On submitting a form a php script is called to validate the form. I did the validation with javascript code integrated in the php script. I know its not the proper way to do the validation but... The problem is that if I dn't fill in the form..and click on the back button..the validation script is executed and i got an error message popup.I want the validation script to be executed only when I click on the submit button.Is this possible? But still I must use the form action so that I could retrieve the values in the validation script.
View Replies !
View Related
History Back Link
how do I create a history.back link with anchor, say #anchor? is there an easy way to do it with just: javascript:history.back(-2)#anchor or do i have to use php? i'm thinking i have to do something like onclick="<? some php code ?>#anchor" how do i grab browser history to redirect the user back two pages?
View Replies !
View Related
Back Tick Problem!
I have problem with following commands, code here.... $str=`php -v`; echo $str; it prints the output as PHP 5.0.4 (cli) (built: May 9 2005 11:21:11) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies $str=`whois yahoo.com`; echo $str; No output is coming in browser; but when tried in terminal it shows the output of whois.
View Replies !
View Related
Back To Previous Page?
is it a way that we can have "go back" to our previous page? cos normally when we use back command in our IE or NS. we should have this error message appeared Warning: Page has Expired blah blah blah.. so how should I program so that i can "go back" e.g: i got two php, fromhere.php and cominghere.php is there anyway that i can do in order to reach the page "fromhere.php"?
View Replies !
View Related
Browser Back After POST
I got an annoying problem using the POST-method to send a form's data: I put a login-form on the page which is sent by the POST-method to itself. After that the content of the POST-variables will be checked (!empty($_SESSION['xyz'])) and the rest of the page included. In order to show some informations (e.g. "Welcome John Doe") and becoming independent of specific POSTs, the data is also written to SESSION-variables. Now if I go to another page (by link) and after that back to the login-page by the browser's "back"-button, it cannot be displayed ("The page cannot be displayed..."). Only if I actualize the page it is displayed regularly. I know that this problem doesn't appear by using the GET-method, but because of security reasons I have to use POST. So what can I do to fix that problem? I don't want to disable the browsers back-button (or use some JavaScript).
View Replies !
View Related
Form Reset When U Go Back
How do i stop reseting form inputs..when u go back in the browser I use sesession before printing forms. Session is just check whether user is login or not if they login then redirect to member section if not show the form. When you enter login information and if it is wrong .user need to go back and resubmit the login information. When u go back u need to type all information again which is just wasting time.
View Replies !
View Related
Back Button And Get Request...
I've made a script for managing shoppingcart (something like cart.php?action=add&item=12345) and it works fine, the problem is: when user hits the back button page after he added something in the cart, the add cart script is rerun and he ends up with having 2 of the same item. Is there a way to prevent script from running when accessed via back button?
View Replies !
View Related
Back Up Mysql Db From Shell
I need to update a remote database from a local one. I use mysqldump in my php page in order to create a file for each table, like this: $command="mysqldump table_products > table_products.sql"; system($command); This works perfect and it gives me a file with a drop-table, create-table and all the insert values. Then I need to connect to the remote server and run the table_products.sql file. The way I do that is by calling the following in my php page: $command="mysql --host=$host --user=$user --password=$pass --database=$db;"; system($command); , where $host, $user etc are being set at the top of the page. This works fine and I get connected to the remote database. Now I need to run the following mysql command: source stb_products.sql When I try this sequence from a command line (windows dos prompt), it works perfect. When I call "mysql --host=$host --user=$user --password=$pass --database=$db;" in command line I get the "mysql>" prompt, and the run the "source table_products.sql" and the remote database gets updated. When I do this through PHP the last command doesn't work. I guess I am not calling 'source' from within a "mysql" prompt? How should I do it? Any other ideas for achieving the same result? I need to do everything from a single PHP page that runs on a local machine. The full code is the following : //DUMP DATA IN FILE $command="mysqldump backcatalogue table_products > table_products.sql"; system($command); //CONNECT TO REMOTE DATABASE $command="mysql --host=$ohost --user=$ouser --password=$opass --database=$odb;"; system($command); //UPDATE REMOTE DATABASE FROM FILE $command ="mysql source table_products.sql;"; system("command ") ;
View Replies !
View Related
Sessions And Back Button
I am developing a web site with a section only for registered users and using sessions to control the access to these pages. I have the problem with the "back" button of the browsers, especially in IE. When I go back within the controlled zone IE always display the message "page expired" and mozilla displaying the advise that you are trying to access to a post data page etc.. I am wondering if there is a way to avoid this "problem" a save the users to think what to do when they see these messages, letting them to go back and forth until they get out of the session.
View Replies !
View Related
Rolling Back A Database
Say I have a function with 5 MySQL queries that all insert or update the database. Now let's assume that during execution, the first 3 queries are executed fine but then the 4th one dies for some reason - problem with the database, connection, whatever. Obviously I can test the $result variable to see if it returns true or false, but given the case above, the database is now left in a "corrupt" state (assuming all 5 queries have to succeed in order for the database to be correct). So, if I receive false for any of the results, is there an efficient way to "roll-back" the database to its original state? Specifically in the above example, is there a way to undo the first 3 queries? I thought of setting flags in an array so that, for example, if query 4 dies, I can automatically undo queries 1 through 3 with new queries that would return the database to its original form, but if there is a problem that prevented query 4 from executing, I don't see how I can guarantee that I would be able to successfully execute new queries to undo the first 3.
View Replies !
View Related
Catching The 'Back' Button
I'm wondering if there's a way to catch when the user clicks the 'Back' button from a specific page. When this happens, I need to run a system call that deletes everything in a session-specific directory. The systems call would look something like this: system('rm -r /home/websites/genework/html/DATA/'.$Sess_ID.'/*'); So, the only thing left is the snag involving the catch of the 'Back' button. Javascript has a way to catch this action (window.onbeforeunload), but the tap-dancing that would be required to get PHP to activate the system call is extremely ugly and I'm not even sure it'd work.
View Replies !
View Related
Back Button Error
After submitting a form from a PHP script and using the back button I get a page cannot be displayed error. Everything works find except when the back button is used. Using IE with SP2 on Windows XP Pro any ideas?
View Replies !
View Related
Going Back To Search Results
I'm trying to work out how to go back to the search results page from an individual product page. I've tried to use the following code: if (isset($HTTP_REFERER)) { echo "<a href='$HTTP_REFERER' class='text'>Back to search results</a>"; } else { echo "<a href='javascript:history.back()' class='text'>Back to search results</a>"; } but the problem is that it just sends the user back to the last page, so isn't reliable enough. I have a product page which contains one or more images, each image requires the page to re-load, so I want to re-direct the user to the search page from any of these iterations. Could someone suggest how to do this? Is there a way of writing search variables into a session identifier that I can easily reference? I know of several ways to do it using if statements and writing lots more sessions but I'm sure there's a cleaner way...
View Replies !
View Related
|