Bigger Text Area
Is it possible to get a bigger text area? So far I have: PHP Code:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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.
Replacing Text For Use In A Text Area...
I have a PHP page that allows a user to preview an email and then send it if(s)he is happy with it. Otherwise, they can click on an edit button and edit the text of the message. The text is then shown in a textarea element. While in situation A (the preview), a bit of formatting is useful (e.g <BR>), all of this formatting is a nuisance in the textarea. Basically, I would like to do the following: a. replace <BR> with a line break for the textarea b. get rid of double spaces and tabs before the text is loaded in the textarea c. put the <BR>s back in when the user is finished with editing the message. Is there a way to do this?
Text Area
I have a textarea that the user can put a paragraph of information in it. I am wondering. with my submit button. if there is a way to make the information of that textarea = to a variable. so then it can be used as text. <textarea name="comments" cols="40" rows="5" value=value=" <? ?>"</textarea></td><td></td></tr> <tr><td colspan="2" align="right"> That is what i have for the text area.
Updating A Text Area
I'm writing a sort of mini chatroom. The problem I've run into is that I can't figure out a way of updateing the HTML textarea I am using to display the messages in the chatroom. I want it to update about every 10 seconds or so. Is there any way of doing this in PHP? I'm willing to try JavaScript too, but I've only just started learning that?
Dynamic Text Area
how do I create a dynamic text area that whenever I select a value from a dropdown list it will automatically fill up the form of my html. the dropdown list contains dynamic values from mysql database. Whenever I click a value, it automatically fills up say for example the name, address, email, etc...
Text Area Input Box With PHP
I have a text area box on one page. PHP sets the information that is inputted into the text area into a variable. When I print this info to the screen via echo, it does't have the line retain the formatting that the user had in the text area. It has no line breaks, it runs everything together.
Text Area Spacing...?
I have a form, and it's a text area. If I press enter twice, it makes a double space, but when I press submit, and it changes the page, it does not double space!. How can I make my code translate those "enter button" presses into a new line? Just in case you need to know, it's writing whats inside the text box into a row in my MySQL Database. So in a way, you could say that when you press the "enter" button, the text area does not take it as a new line. Here is my code:
Hyperlink In Text Area
I have a basic CMS system and the client would like to insert some links in the text area. What would you recommend the best way to do this in a textarea box? There may be several hyperlinks in 1 textarea and some may have none at all. I assume this would be some sort of javascript code or is there an easier way.
Sizing A Text Area Dynamically
I have several text areas I am putting information from MySQL into. Right now they are 50 characters wide, by 10 rows. I want the number of rows to dynamically size do that the text area is the same size as the length of the data in MySQL. I've tried all the logic I can think of... taking strlen and dividing it by the width... works great until they use line feeds... if someone puts: "Hello... thanks." the character count divided by the width is off. Here is the code I am using: Code:
Keep This Text Area From Being Edited In This Form
I need the textarea so it can not be edited by the user..... how can I hide it and keep it so it can not be changed <textarea name="body" id="body" cols="50" rows="15">'.$_CONFIG['MAIL_BODY'].'</textarea> this text area has an email message for my inviter script but I dont want the user to be able to alter the body... how can this be achieved? I manages to hide the subject by ussing type hidden but I dont know how to do it with this text area.
Detecting Line Breaks In A Text Area?
This is really frustrating... I have a form in which there is a text area for people to post comments on the site. I'm hoping that people will take the time to fill out reasonable length responses which my spread over two or more paragraphs. My problem lies there; it might spread over two paragraphs... I know I can use 'special character(s)' which the user can put in that I can then do a ereg_replace() to put the <p> or <br> tags in but I would prefer that they didn't have to... like for instance in this forum I've tried to see whether there are any line breaks or something in the textarea when a carriage return has been made but I can't seem to pick anything up, has anybody managed to come up with a solution to this?
Writing To Heredoc From Text Area Form
I can't seem to get heredoc to populate correctly with variables through a form. <textarea name="Template" rows="10" cols="80">Template Here</textarea> Contents could be something like: I want to replace $myarray[0] and another variable $myarray[1] I call heredoc this way: $hubarray = explode(" ", $contents); $template = $_POST['Template']; foreach ($hubarray as $val) { $hostarray = explode(",", $val); $output = <<<EOT $template EOT; I'm feeding it a file that has multiple rows separated by as array 1 and within those rows are fields separated by "," for array 2. I'm trying to iterate through the arrays and populate heredoc($template) accordingly.
How To Make Text Area Recognize Hyperlinks?
I built a simple form where a user can enter and post news items to his site (with PHP, into MySQL). He doesn't know much HTML. Is there some way he can enter some simple text to declare something a hyperlink, and have PHP recognize that that means "make this text into a hyperlink"? ....so that instead of having to type this into the textarea: <a href="http://www.somesite.com">somesite</a> ....he could type something more intuitive, like this: <somesite.com>somesite</somesite.com>?
Explode Text Area Into Array For MySQL Table
On my site, I have a textarea where users enter their sites' information in the following format (tab-delimited): Site Name <tab> Site Description <tab> URL <newline> Site Name <tab> Site Description <tab> URL <newline> (and so on...) I know I have to use the "Explode function and a loop to get the data into an array and enter it into a MySQL table. Would anyone have a snippet of code off-hand that could show me how to do this?
Formatting The Contents Of A Text Area Form Field
On my site I get users to enter a load of information in a textarea box, however when i save this data to my mysql DB and then retrieve it, it comes out without all the formatting, like new paragraphs and new lines. Can anyone tell me how you can capture the data entered into such a field with all the formatting the user has entered like new paragraphs etc?
Identify Url Written In Text Area And Display It Hyperlinked.
I am using html textarea control. user writes text in text area and i save it in database using php, then i display it where ever it is required. I want if user writes some url in the area like www.abc.com or http://www.abc.com , When i display this text as output this url must be shown there as hyperlink. by clicking over it user must be redirected to www.abc .com Is there any html textarea control property that can do it, or i need to write some php or javascript code for it. If someone has php script for it please help. It is urgent.
Paste HTML Page Inside Text Area
i want to create a newsletter or emailer form sender. and that form has a text area. can be an ordinary text area or can also be tinymce. i want to have the text area in such a way that an HTML page can be pasted in the text area (let say the html page is jobpost.html) and send it to the email address that i specified.
Protected Area/admin Area
I am building a web site and have included an admin area where I want to use a username and password that only myself and the admin will be able to use. I am using the following code, but something is wrong when I put it on my host: Code:
40000 Bigger Than 140000 In A ORDER BY
I have an orderby in my query and when i do "ORDER BY price ASC" the output looks like this.. 140000 40000 50000 Is it me or is that wrong? Im sure there is a simple quick fix but i dont know what.
Temp Directory Does Not Allow Bigger Files
I am trying to upload a file of 1.6 meg. I have set: php_value upload_max_filesize 16M php_value post_max_size 18M in an htaccess file and they show up correctly on my phpinfo file. I have: <input name="MAX_FILE_SIZE" type="hidden" value="20097152" /> (Which is 20 meg) as a form field. I can upload 750k without a problem.But it gives me an error INSTANTLY when I try a larger file. Any suggestions? Could it be the temp directory doesnt allow bigger files?
Secure Area?
I would like to do the following, and need some advice. There is a login page, where users can log on(and e.g. the admin.) from there you can go to several other pages, where you need to be logged on. Since I don't want to use cookies, how do I pass the login information to the other pages, so they can evaluate if the user is allowed to view them. I can't pass any of this data thru the url I guess because everyone could read it in the browsers history if a person logged on earlier, then use this link with the info supplied. The same goes for session ids I think, or don't I have to pass the session id to subsequent pages? Can anyone give me advice how to implement pages that should only be viewed by currently logged on persons.
Members Only Area
Just wondering if you could please please help me with something. I am fairly new to php but have managed to get user input into and out of the my sql database etc. Our site will have a members part to it and I'm not sure how to organize this. I have written a php code which checks a users username and password against what is in the database and sets a cookie for the user if the login info is right. My quandery (and I can't seem to find this in any php books)- if a now logged in user goes to the index page I want that user to see a logout rather than login button. Should I direct the member who logs in correctly to another index page (via a header )which is exactly the same except for the logout button in another file - maybe a secure file- or should I have them go to the same index page but write some php code in that index page that checks to see if a cookie has been set and prints a logout button if yes and a login button if no. Following on- there are links on the index page that can only be followed if the user has logged on correctly. If I had two copies of the index page- one for users not logged on and one for logged on members, I would only have the links work for those logged on who are going from the logged in index page and direct the others going from the not logged inindex page to the log on page. Otherwise I would have to write code at the top of these members only pages to check to see if the user is logged on.
Area Graph
I have created an area graph using GD and PHP. The data that is being plotted onto this graph is being pulled out from a MYSQL database. It is pulling out 4 different sets of points, and plotting them. So basically, 4 companies, or 4 lines are being drawn on the graph, and the area underneath the lines are being filled in. Currently, the companies are being displayed in the order that they are being pulled from the database. This causes some of my companies to be hidden behind the one that have more area. I need it so that the company with the smallest area will be displayed last, and the one with the largest, displayed first, and so on. How Can I accomplish this?
Images In *area
I need a feature and I'll try to explain it. The thing I need is some kind of textbox or just box. I want to add images that display instantly, when I press a link. Like this: _B_ _G_ D_ _C_ /------------------------- | [pic][pic][pic] | -------------------------/ Like adding real smiley's to a forum post or whatever post. I don't want complicated richtextarea or similar program, I just need this one feature and that's all. Any clues how this can be done?
How Can I Run PHP4 From User Area?
I have to use a program written in php4 that won't run with an earlier version, My hosting service is upgrading, but can't tell me when my server will be updated. They suggest I run php4 from my own user area where I currently have heaps of space. I've just tried using phpLib with no success, but it also requires me to extensively modify my scripts. Even then I'm told there is still a problem. Can anyone help me with information on how i can put PHP4 in my area and get it to work?
OT: Franchisee Area Calculation
I've searched the web for weeks (on and off) but can't find any information about the topic. A client wants to set up a franchisee structure and track this information via a database. I've never done this and uncertain of how I would do it. Initially the client only wants state by state franchisees but I can see that this could eventually be scaled to districts/areas. To compound matters, my client is wanting this to work in any country.
Simple Admin Area
i need an admin area for one of my scripts and i've had some trouble with security in the past with this type of thing. So i just want to check if this is secure: <form action="" method="post"><input name="password" type="text" /><input name="" type="submit" /></form> <?php if($_POST['password']){ include("settings.php"); //with $pw if(md5($pw) == md5($_POST['password'])){ echo "in"; } else { echo "out"; }} ?>
Limiting Access To Upload Area
I'm in the process of creating a Linux+Apache+PHP website with a public area and an admin area for configuration and updates. The What: One of the features of the admin area is image-upload, where the images are subsequently viewably by the general public. Currently I've created a dedicated "pictures" directory which world-writable into which the PHP script puts the form-uploaded images. The admin logging in is done via a database lookup, not .htaccess directives or OS permissions. The How: It seems a bit risky (is it?) to have to directory so open, is there a way I can allow the script to move files into that directory without making it a+w?
User Area / Members Page
I have altered a simple member management system from a tutorial for my site. I have the login, logout, etc. all working fine. However I need to understand the concept behing having member pages. Basically I'll have to type of users on my site, host and visitors/users. The host will have pages that they can maintain and broadcast and visitors can view the host pages based on whatever host they select. How do I go about making individual areas for each host upon their login? Sort of like a myspace system. I am able to have a user control panel, see code below, but this is a page that only the host can see. I want a page that a host broadcast and vistors can view. Code:
Restricting Acces To Admin Area
I have created a little website with login and admin area that updates the sites content. I need to figur eout what the best way is to stop people who are not logged in going direct to my admin pages for example just typing in /admin.php when nobody is logged in. I read this can be done using cookie although I am not sure how and I have created a session so was wondering if it could be done via that? A little unsure here!
Secure Login Area For Documents
I built a login area with a document manager. It works great and all and all the pages are secure. My question though if the pages are protected by php and you can't get to them, how do you keep someone from linking to the document directly. Since the document is not going to process the php and check for credentials when they put in the direct link to the document.
Displaying Output In Display Area
the following is an example code only. i want to display the echo output commands into an iframe or equivilant within the page itself and not on a new page as the default does. if im using the incorrect terminology please forgive me. but i cant think of a better way to explain it and so far no one seems to have the slightest clue what i mean at all:
Hiding Admin Login Area From Visitors
I would like to have a link to the pop-up login page on all the pages on my website (for me), but I don't want visitors to have access to that page and possible hack into it (not that they would, but B.S.T.S.). I thought about placing a file with a unique name on my computer, and having the check admin function check for that file, and if that file exists, then it displays the link to the login page. While trying to implement that idea, I realized (duh) that PHP can't check for local files. Too bad too, b/c that would've also allowed my stats functions not count me as a unique visitor (by checking for that file).
Member Area With Dynamic File List
I have an Apache 1.3.31 with PHP 4.4.1 available and want to create some kind of "member area" with a per-user or per-group listing of files that can be downloaded. How would I do this? At present I just protect the individual files using .htaccess and .htpasswd files and give out direct URLs to the files together with username/password. What I'd like is some login functionality where people can log in using their username/password and then find a list of files they can download together with additional information individually tailored for that user.
Change Default Temp File Upload Area
Hopefully you won't need example code for this. Does anybody know how to change the default file upload temp area on a IIS server (not using .htaccess or php.ini) using PHP?
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).
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.
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">)
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:
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?
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).
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:
|