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.





Get The Text Within The Text Box To Transfer To Another Page.


I have found a free rich text editor for my website. I have played around with the code to get the text within the text box to transfer to another php page. My problem is that the varible is passed with. I have set up a page to remove them but nothing happens. The code:




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Transfer Certain Portions Of Text From The Right Page To The Left Page.
I have a page split in two and I want to be able to transfer certain portions of text from the right page to the left page.

View Replies !   View Related
Quickly Adding Text To A Mysql Text Field That Is NOT Empty
Is there a way to insert text into a mysql text field that already has
text into it; without having first to extract the existing data and
append the new text to that string variable and then insert the new
string.

Basically i'm looking for a way to do it with a single query not 2 (one
being a select to gather existing data).

View Replies !   View Related
Rich Text Editor Which On Submit Updates The Field To Have The New Text
I have my content stored in a database. I need a rich text editor (so the user doesnt need to include HTML) so they can edit contact. So a rich text editor that displays whats in the current content field and can be edited so on submit it updates the field to have the new text. Get what i mean?

View Replies !   View Related
Gaining Access To How MySql Parses Text For Full Text
I want to gain access to the function or process MySql uses to parse words and phrases for Full Text searching. Here is an example.

If the user inputs...

Milan in history

MySql will search for milan, history, and milan history. Is there a way to extract just the combination of terms MySql uses to search the db without the stop words? Stop words are automatically eliminated from the search request unless the user encloses a phrase in quotes.

What I am trying to do is develop a script to highlight found search terms and phrases. I can explode a phrase into single words but if I do that the stop words would be included in the array. If there is some way of getting into the parsed words or phrases MySql Full Text actually uses to search, I can use each of those combinations as a keyword in my highlighting script.

This request is about searching for the code or any code related to the questions involved.

View Replies !   View Related
Create A Simple Text Editor That When Used Adds The Text To A .txt File.
I am trying to create a simple text editor that when used adds the text to a .txt file. At the moment im having trouble with the formatting of the text in terms of new lines.

If i write in one long sentence the positioning of the text is fine however if i try to use paragraphs extra lines are added in and then the code gets confused and makes parts of the paragraphs titles, shown in bold.

View Replies !   View Related
Regular Expression :: Replace Nested Text With Replacement Text
How can I setup a regular expression to replace nested text with replacement text. I can't explain it very well, but say I want to replace [asdf] with <asdf>, and my sample text is: Code:

[asdf]adsfasdf[asdf]adsfadsf[/adsf][/adsf]

I end up with this: Code:

<asdf>adsfasdf[asdf]adsfadsf</adsf>[/adsf].

View Replies !   View Related
Getting The Text From A Web Page
I need to take a web page and parse the text from the site. I am thinking of using regex to kill the script and style sections, then strip tags or more regex to kill the reset of the non-text. I need to have the text categorized as sentences, so I some how have to keep track of how it is grouped with other text.

I have two questions:

1) What do you guys think is the best way to do this? Regex, explodes, iteration, building a DOM structure, callbacks?

2) What would the regex look like if I wanted to find <, then any number of whitespace chatarers, then the word script, then anything except for (<, possible whitespace, /script, and then anything until >). Put another way, how can I match the style section of a document?

View Replies !   View Related
Text On A Page
I have a sample script i want to display on a php page. In this script I have <? and ?> that need to be displayed. Problem is that the page goes haywire everytime I try. I am assuming this is because its reading the text as php code. how I can output <? as text without it being read as code.

View Replies !   View Related
Display Some Text To The Screen Via A Link To The Text In A Mysql Db.
I am just screwing around a little and trying to display some text to the screen via a link to the text in a mysql db.

View Replies !   View Related
Text Area Not Accepting Large Amounts Of Text
I have a form where teachers enter homework assignments and they are then stored in a MYSQL database and retrieved elsewhere.

I have been using "get" with the form. The code is simple:

<textarea name="array[assignment]" cols="60" rows="10" id="array[assignment]"></textarea>

It does allow post of 100 words, etc. Stuff that teachers normally submit.

What's happening is that it won't allow very large posts (over 300 words maybe? ) Not sure what the cut off is. When you press submit it won't go, or there is an error where it won't submit.

Is there a limit for text fields? Since the fields scroll, I didn't think that having only 60 rows was any type of real limit, I though you could put in as much as needed. But then all of it ends up in the address bar, so there must be a limit of some sort.

View Replies !   View Related
Imagettftext() Gives Grainy Text When Writing Aliased Text
I'm using a bundled version of GD: 2.0.23 compatible. When using the
function imagettftext() with a negative color to get a aliased text,
the text gets grainy. What could be wrong? I've tried several ttf
fonts, with the same result.

View Replies !   View Related
Read And Display Japanese Text From Text File
I posted a question regarding reading japanese
text from a text file.

Well, since I solved the problem, I thought I'd post my solution for
the benefit of other people with the same problem.

The plan was to make a script to read and display japanese text. I
will use it for making a japanese proverb script and for a japanese
language study script.

Method :

I wrote a simple kanji text file (saved with UTF-8 encoding)
I wrote a simple PHP script to display the file contents (saved with
UTF-8
encoding)
I specified the content-type header for the HTML page :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

*** All files have the same encoding. ***

UTF-8 supports japanese characters.

and it works!

this is my PHP (and HTML) script :

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PHP : Japanese Text File Read : Exercise 1</title>
</head>
<body>

<?php

$filename="japanese.txt";
//open file
$fp = fopen($filename,'r');

//loop through each line in the file
while($line=fgets($fp))
{
//output current text file line
print $line."<br>";
}
//close file handle
fclose($fp);

?>

</body>
</html>

I know it's a very simple script, for testing purposes only. It
displays the contents of the japanese text file line by line.

The key was to save all files in the same encoding (I used UTF-8) and
to specify the encoding / charset in the HTML header (<meta
http-equiv="Content-Type" content="text/html; charset=utf-8">)

View Replies !   View Related
GD Text Alignment - Specifically Place Text Over An Image
I need to specifically place text over an image. I've got the image creation down, but all I can seem to do is center the text. So lets say I have an image 300px(W) by 150px(H). I want to right align the text.

View Replies !   View Related
Search Text - Click To Make Value Text Dissapear
I am using php for my site and in the header I have the code below for the search box. Inside the search box I have Enter Keywords. Does anyone know how I can make the text dissapear when a user clicks inside the search box once? Code:

View Replies !   View Related
Q: Read Text With VBA From A PHP Web-page
I created a page on our intranet that shows a number and that
increases for every time the page is opened. It is similar to a
visitors-counter.
When I look at the page with Internet Explorer it works just fine.

Now I want to read this web-page from a MS-Word macro and include the
number as a company wide unique id in my MS-Word document.
Unfortunately, the PHP script doesn't update the counter when I call
it from my MS-Word macro.

How can I force PHP to update my counter when I call it from a VBA
macro?

I am using the following code:

View Replies !   View Related
Finding Text Within A Page
Basically I want to search a page for words and if they are found I want the script to do one thing. If they're not found, I want it to do something else.

View Replies !   View Related
Updating Text On A Page
I am designing a site with which my client wants to be able to update the text on each page of the site e.g. each week they will want to change the "About Us" text, they also have food menus which they want to update. I realise this would be done using php... does anyone have any examples of something like this?

View Replies !   View Related
Variables From Text Page
I have this text in a text file:

$a1 = #123text#
$a2 = #12345
texttest
text#

Does anybody know a quick way to open the text file in php and give the proper variables their value like: echo $a1; should return "123text" and echo $a2; should give me "12345texttesttext"

View Replies !   View Related
How Can I Refresh Text On A Page
I'm trying update my shoutbox to display new text live. Is there any way I can go about having Javascript run in a hidden iframe to update information, and then use Javascript on the parent page to show the text as it comes in?

My shoutbox is now skinned and thus refreshing is sluggish and annoying. Edit: With a quick search I found a plugin-based shoutbox using AJAX so no autorefreshing is needed. Does anyone know how this would work with AJAX. I have never touched AJAX unfortunately.

View Replies !   View Related
Page Breaks In Text Reports
How can I make page breaks in .txt reports? Is this even possible with php?

View Replies !   View Related
How To Place Formatted Text On The Php Page
I'm entering data through textarea, and I want to display the same data on the
form with all formatting settings. means, if I pressed enter while entering text in the textarea to make a separate line, the separate line has to come when displaying on the form also.

View Replies !   View Related
Changing Text On Page Via Dropdown Box.
I have a webpage that draws various text decriptions from a mySql database. The description displayed on the page is controlled via a dropdown box. Currently I am using Javascript with a dropdown box (onChange handler) to change the value of a textbox.

Can anybody think of a way that I don't have to use a textbox(with its' scrollbars and background)? How can I change the value of a php variable by changing the selected index of a dropdown box?

View Replies !   View Related
Extract Only Plain Text From A Page
Basically, what I am trying to do is write some PHP code that will automatically take text from any web page and eliminate all the HTML, CSS, and JS codes and formatting, leaving only the plain text from the page. I got my code started, but I have hit a snag with javascript and css codes. This is what I have so far:

<?php
$geturl = $_GET["url"];
ob_start();
include($geturl);
$page = ob_get_contents();
ob_end_clean();
$output = ereg_replace('<script.*.</script>', ' ', $page);
$output2 = ereg_replace('<style.*.</style>', ' ', $output);
$plaintext = strip_tags($output2);
echo $plaintext;
?>

The strip_tags function automatically removes all html tags, but it doesn't do anything to javascript and css because html code is not provided between the beginning and end tags, whereas javascript and css codes are both contained within two separate tags, like this for more clarification:

html:
<div name="htmltag">Keep this text here</div>

javascript:
<script>function somejs() {remove all this code}</script>

As you can see, the text between the div tags should stay, but the js between the script tags should be removed because it is code.

I then tried the ereg_replace function to get rid of js and css codes, but there is a problem when there is more than 1 piece of js or css code. The wildcard value (.*.) skips over any ending script or style tags until it reaches the last ending tag, therefore deleting all the text between the two pieces of code. Example:

<SCRIPT>function somejs() {remove all this code}</script> //removes all text and code from beginning here
KEEP ALL THIS TEXT HERE
<script>function somejs() {remove all this code}</SCRIPT> //to end here

Now finally down to the question, is there any way to only remove the js and css code between the beginning tag and the immediate next ending tag? Or is there any other way to get rid of the javascript and css codes?

View Replies !   View Related
Display A Text File On A Web Page
I have a text file that I am trying to display on a web page. If I cat
or more the file it formats and displays fine. When it comes up in the
browser it seems to loose tabs and the format gets messed up. This is
how I display the file.

$show = file("./fields/combined/$cdp$store");
$arrayitems = sizeof($show);
$x=0;
while ($x < $arrayitems) {
print("$show[$x]
");
$x++;
}

If I edit the file it has ^M at the end of each line if it matters.
Does anyone have a better idea as to how to display it?

View Replies !   View Related
Displaying Text While Page Is Loading
i'm trying to display text while a page is loading using a method
similar to the following:

<?
ob_end_flush();
echo 'AAA<br>'
flush();
sleep(10);
echo 'BBB'
?>

in this script, AAA and BBB appear at the same time - when the page has
fully loaded - which is not what i want (i want AAA to appear and then
10 seconds later, BBB to appear). pursuant to the suggestions on
php.net's entry for flush, i've also tried the following to no avail:

<?
echo 'AAA<br>'
ob_flush();
flush();
sleep(10);
echo 'BBB'
?>



View Replies !   View Related
Text File Download On .php Page
I have created a website in which I want to put a link to download a text
file. When I used simple:

<a href="Dir/File.txt">Download file</a>

I had such problem that instead of dowloading the file contents was
displayed in browser. In some book on PHP5 I found a "solution": create a...

View Replies !   View Related
Take A Text Which Is Highlighted On A Web Page As A String
how can i use php to take a text which is highlighted on a web page as a string?

View Replies !   View Related
Text Reflecting On Page Title
if it is possible to reflect the page title inside the document itself. An example would be like this;

The page title is ?' minus the quotes
And i would like to display something like 'This page was made on the 1st of January 2007'

Notice how the page is a shorthand date. I have tried difing Arrays in the title tag, but they always seem to appear as the actual title. which doesn't look right and am sure will deter visitors.

View Replies !   View Related
Need To Copy Text From One Part Of Page To Another
It has been great so far but I hit a road block on one thing and I figured the brilliant minds here could help. This site isn't in a database because its 3000 pages of HTML now and we figured we can do work arounds to make it look right. We are starting a database for future data though Code:

View Replies !   View Related
Custom Text When Opeing A New Page
I dont really know much about PHP and slowly getting to grips with things. I'm trying to make my own wedding list as this is a nice way to save a bit of money on the whole thing. I managed to do what I set out, have a list that pops up a contact form which seems to be working and emailing out fine. But getting into the swing of things I'd kinda want to make it look a little nicer and easier for our guests. The next step I want to do is this:

I have a list of gifts, when someone clicts on an item I'd like it to open the contact form (as it does now) and Have a thank you message which mentions the gift Automactically include the gift text in the message that is emailed. Is it possible to pass some text when clicking on a link to a new page?

View Replies !   View Related
Append Text At End Of Existing Text On Same Line
I'm working on a part of my web site that uploads images, then writes the name of the image to a text file. The upload part works fine. The part that writes the name of the image to the text file works fine.

What I'm trying to do is, after all the files have been uploaded and all of the image names have been written to the WriteTo.txt file, append a written description of the picture at the end of the picture name. In other words, after a user uploads their pictures to the server I want to direct them to a page where they can label each of the pictures using a form. PHP Code:

View Replies !   View Related
Adding Text To Text Window With A Button
I have made an admin section of a site, What i want to do i have buttons under that have "BOLD" "center" and when clicked it adds <b></b> tags to the text area etc etc..

if the text area was called "message"

how would i going about coding the images / buttons to add the code?

View Replies !   View Related
PHP - Using Mail() And Unicode Text - Text Gets Disturbed
I have the following problem. On a website there's a (simple) feedback
form. This is used also by Polish visitors who (of course) type Polish
text using special characters.

However, when I receive the text in my mailbox, all special characters
have been turned into mess......

For example: "wspólprace" is turned into "współprace".

It seems PHP is handling the Unicode-8 strings quite well (when I
'echo' the strings on the site, I see the text correctly), until the
point that it is send by using mail().

Is this a server configuration issue? Or something else?

How can I get my text to remain in Unicode?

I have this problem both on my testserver (Apache 1.3.28, PHP 4.3.2 on
Windows XP) as on my providers server (Apache under Linux).

View Replies !   View Related
Remove Text Header In Text File
I have been having trouble removeing two header lines at the top of my txt file. You will see in my code the different things I have tried but with no luck. Below I posted my script and data. I am doing a few other things in my script as you will notice but this is the only thing I am having troble with. Code:

View Replies !   View Related
Parsing Text - Capture Text Between Two Tags
I want to have text in files, such as

{body}
{/body}

and then be able to open that file and grab all of the data inbetween those tags. I could open the file and go through it until I see the {body} tag and then store data until I reach {/body} but that is a bad way to do it.

View Replies !   View Related
Text Returned From DB Gets Cutoff When Placed In A Text Field
I have a string that contains an apostrophe or a quotation mark, stored in a DB. I can retrieve the data, and display it properly (for editing) in a textarea, but when I try to put the string in a text field, it get's cut off right before the questionable character.

For example:
$string_in_database = "John's car."

 -displays correctly here <textarea><?php print $string_in_database ?></textarea> and displays this - John's car.

 -gets cutoff here <input type='text' value=''<?php print $string_in_database ?>' /> and displays this -  John

I've tried adding slashes and stripping slashes and I just can't figure out what I need to do.

View Replies !   View Related
Keep Text In Text Boxes After Form Is Rewritten
I'm trying to make a form that does the following:

(1) the user answers a question by typing in a text box
(2) a response is then written below the form, saying whether the answer is right or wrong and, perhaps making a comment of some kind
(3) the user's answer remains visible in the original text box

I've managed to write some code that does the first two things, but despite many attempts and much searching for code examples, I've failed to find a way of getting the answer to reappear in the text box when the page is rewritten.

This is my code:

View Replies !   View Related
Use Htmlentities When Inserting Text Into A 'text' Field
Should I use htmlentities when inserting text into a 'text' field or should I leave the input and htmlentities the output when displaying?

Pound signs etc work, but having issues with & (&amp;) and trying to strip_tag at the same time?

View Replies !   View Related
[Resolved] Removing Text From A Text File?
just wondering if it is possible to remove text from a text file. I have a text file with ip addresses and i want to remove a persons ip address when they go to my webpage. if it is possible could someone please show me how to do so.

View Replies !   View Related
Include Text Files For Text Content?
Is it pretty standard procedure to use .txt files to store textual content on a big site? I have the content set up in the database right now, but management is a headache at best and I want a system whereby I can easily edit the content from a text editor or from a browser interface.

I can see the text file solution filling both of these needs, not to mention that in my preliminary testing it was almost twice as fast as calling from the database (even with good indexes). I just don't want to redesign my whole system only to find out that someone already tried it this way and it didn't work.

I also have a search page to worry about, for which I was planning on simply iterating through the files and checking each as I would a database entry. The search page is almost negligible, though. Not only does it not get much traffic, but we're mainly a catalog site, so anyone searching the site would likely be searching products anyway.

View Replies !   View Related
Inserting Text From Text Upload/file
a client needs to put a over 500 text files into a mysql database, which will also have to be searchable (but thats not the issue at hand). is there an easy way to mass insert numerous text files into the database either by reading the files locally, or through a directory online.

View Replies !   View Related
Script To Parse Text From A Text File.
I've got a problem building a script to parse text from a text file. Everything works great for unique strings of text, but there also strings in the text file which are not unique. E.g. the text file contains the following text "bla blaa text=bloeb1 blabla text=bloeb2 bla"

I want to extract the 'text' variables (with values bloeb1 and bloeb2) from this text file but I don't know how much text variables are present in the file. So, it's possible that there is also a bloeb3 or a bloeb10.

View Replies !   View Related
Adding Text To A Search Box By Clicking On The Text
I'm trying to create a series of hyperlinked strings such that when the user clicks on the hyperlinked string, the text automatically goes into a search box and all the user has to do is to press a button to execute the search.

I am expecting this to be easy, but I have no idea how to link the two parts up.

My expection is that this involves making the search box dynamic. But of all the tutorials I've read, you can create an initial value for the statement within the search box by simply using the "value" command, but I've not seen a way to manipulate that value statement on the go.

View Replies !   View Related
Use A Text Area Which Will Show All Formatted Text
i have no clue how i pull it off what i how can i use a text area which will show all formatted text so if a user presses enter to add a new line or start a new paragraph example shown below i went to the shop and bought (pressed enter) 500 cakes. where when a user enters and submits to my db and i retrieve the text it loses all user formatting and will appear like this i went to the shop and bought 500 cakes.

View Replies !   View Related
Creating Text File With Page Breaks
If is a newline and is a carraige return, what special character is used for a page break?

View Replies !   View Related
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 !   View Related
I Want To Create Web Page Acting As Text Editor?
What I am trying to do is to create a tutorial for my beginning students for JavaScript and PHP, using a very simple online editor like the one @ w3schools, So the left window will be the text file code, such as:

<html>
<body>
<script>document.write("This is a test.");</script>
</body>
</html>...

View Replies !   View Related
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 !   View Related
Getting Query Values Into Text Box, Then Pass Them To Another Page
how do i get the values from a query from a db into text box's, in a form, so i can hit submit and it goes to an "update" page? Code:

View Replies !   View Related
Regular Expression - Get The Text From Html Page
I've been trying unsuccessfully to get the text from html page. Html tag that I'm interested in looks like this:

<a class=link
href="http://www.something.com/_something.php?type=cart">Shopping
Cart</a>
<div><em class=newentry><a href=http://nothing.com>New
Age</a></em></div>

View Replies !   View Related
Enter Text From Html Page In Php Form
I'm trying to do. What I have: listing.html:

<a href="apply.php">Click here to apply</a> Please mention job ID ###.

apply.php then has a form where the applicant can enter their contact info and the position they are interested in (text).

Can I use php to read the job ID which follows each apply link on listing.html, and then automatically enter it in the Position field on apply.php?

View Replies !   View Related
Get A Paragraph Of Text To Show On The Home Page Only
I am using a script that I purchased and downloaded. This script has a template folder and inside has header. php, and footer.php. The center content is populated from various other pages. How would I get a paragraph of text to show on the home page only, and no other pages in the script

View Replies !   View Related

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