Click here to Skip to main content
15,913,773 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionHow to install xampp or Lamp in Ubuntu 8 Pin
Member 992947820-Mar-13 20:55
Member 992947820-Mar-13 20:55 
AnswerRe: How to install xampp or Lamp in Ubuntu 8 Pin
Richard MacCutchan20-Mar-13 22:54
mveRichard MacCutchan20-Mar-13 22:54 
AnswerRe: How to install xampp or Lamp in Ubuntu 8 Pin
Mohibur Rashid30-Apr-13 17:19
professionalMohibur Rashid30-Apr-13 17:19 
GeneralRe: How to install xampp or Lamp in Ubuntu 8 Pin
Rony Sur2-Jul-13 0:09
professionalRony Sur2-Jul-13 0:09 
AnswerRe: How to install xampp or Lamp in Ubuntu 8 Pin
Tushar Guru8-Sep-14 22:17
Tushar Guru8-Sep-14 22:17 
QuestionHow to get data from the other website in php Pin
surendra4u20-Mar-13 1:04
surendra4u20-Mar-13 1:04 
AnswerRe: How to get data from the other website in php Pin
dusty_dex20-Mar-13 3:21
dusty_dex20-Mar-13 3:21 
QuestionIRDA without IR Pin
lukeer25-Feb-13 22:30
lukeer25-Feb-13 22:30 
AnswerRe: IRDA without IR Pin
Richard MacCutchan25-Feb-13 23:52
mveRichard MacCutchan25-Feb-13 23:52 
QuestionRecord insertion error in php Pin
maniedru7-Feb-13 0:59
maniedru7-Feb-13 0:59 
AnswerRe: Record insertion error in php Pin
Graham Breach7-Feb-13 2:32
Graham Breach7-Feb-13 2:32 
GeneralRe: Record insertion error in php Pin
maniedru7-Feb-13 5:08
maniedru7-Feb-13 5:08 
GeneralRe: Record insertion error in php Pin
Graham Breach7-Feb-13 7:10
Graham Breach7-Feb-13 7:10 
GeneralRe: Record insertion error in php Pin
maniedru28-Feb-13 3:14
maniedru28-Feb-13 3:14 
Questionrevenue, tax and shipping not working in google analytics tracking code! how to do it working? Pin
Lê Đình Thanh Hải28-Jan-13 20:17
Lê Đình Thanh Hải28-Jan-13 20:17 
Questionsum of all the fields in columns. where columns are dynamic Pin
Indudhara28-Jan-13 3:22
Indudhara28-Jan-13 3:22 
AnswerRe: sum of all the fields in columns. where columns are dynamic Pin
Mohibur Rashid11-Mar-13 22:14
professionalMohibur Rashid11-Mar-13 22:14 
Questionhow to get a object according the name of class Pin
Keanu L18-Jan-13 16:31
Keanu L18-Jan-13 16:31 
AnswerRe: how to get a object according the name of class Pin
Graham Breach18-Jan-13 22:31
Graham Breach18-Jan-13 22:31 
GeneralRe: how to get a object according the name of class Pin
Keanu L6-Feb-13 1:28
Keanu L6-Feb-13 1:28 
QuestionHow much time does it take to be a great developer in PHP? Pin
atoi_powered17-Jan-13 13:34
atoi_powered17-Jan-13 13:34 
QuestionRe: How much time does it take to be a great developer in PHP? Pin
Richard MacCutchan17-Jan-13 23:19
mveRichard MacCutchan17-Jan-13 23:19 
AnswerRe: How much time does it take to be a great developer in PHP? Pin
Manfred Rudolf Bihy18-Jan-13 4:50
professionalManfred Rudolf Bihy18-Jan-13 4:50 
QuestionDispensing text from a text file Pin
John Smith8-Jan-13 19:56
John Smith8-Jan-13 19:56 
In my php file called "account.php" I have

XML
  <?php

    // First we execute our common code to connection to the database and start the session
    require("common.php");

    // At the top of the page we check to see whether the user is logged in or not
    if(empty($_SESSION['user']))
    {
        // If they are not, we redirect them to the login page.
        header("Location: login.php");

        // Remember that this die statement is absolutely critical.  Without it,
        // people can view your members-only content without logging in.
        die("Redirecting to login.php");
    }

?>
<html>
<body>
<link rel="icon" type="image/gif" href="favicon.gif" />
<?php include("header.php"); ?>
<div id="main-box">
<ul>
<li class="buttons">
<?php
TEXT BOX WITH A LINE FROM **TEXT.txt** SHOULD APPEAR HERE AFTER USER CLICKS BUTTONS
<input type="button" name="account" value="Get Your Account" onclick="#" />
</li>
</ul>
</div>
</body>
</html>


I want it so when the user clicks the button, a text box appears and displays ONE line from the text file and when they view it, it deletes it from the text file.

text.txt

Eddie
Apples
Hello
People

So after the user clicks the button it displays "Eddie" line to them and then deletes it after the user sees it so that the next line "Apples" would then become the first line.

If you don't understand my question then please let me know and I will try to explain further. Thank you. Smile | :)
AnswerRe: Dispensing text from a text file Pin
Zamshed Farhan12-Jan-13 3:03
Zamshed Farhan12-Jan-13 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.