Closed Thread Icon

Preserved Topic: PHP: form submitting Pages that link to <a href="https://ozoneasylum.com/backlink?for=21209" title="Pages that link to Preserved Topic: PHP: form submitting" rel="nofollow" >Preserved Topic: PHP: form submitting\

 
Author Thread
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 12-15-2001 18:29

tell me, when im annoying you with my php questions.
2 Qs:

ok, im doing this admin-script and the user should also be able to write a new article in a textarea. the problem is the article could be very long. 500+ characters. and it seems as if a variable cant hold that amount of chars.

index.php?content=blabla.....(very long blabla)....

so is there a way around this?

2:
im using strip_tags() to strip the tags (who'd guess that) but i wont want them to be stripped if the user makes a new line. ( '\n' character).
should i manually do a convert from \n to <br&gt by parsing through the whole string or is there an easier way to do this?

big thanks in advance.



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 12-15-2001 18:50

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 12-15-2001 19:01

GRUMBLE: I tried something similar and, as InI says, there are limitations. I'd assign the data to a session variable and then submit that.

Emps

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 12-15-2001 19:05

uh, thanks ini, that worked!!!

[This message has been edited by GRUMBLE (edited 12-15-2001).]

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 12-15-2001 20:41

BTW this may help
nl2br



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 12-15-2001 21:56

By default PHP will accept 8MB of data via POST method. You can configure that in php.ini file ("post_max_size" option)....


« BackwardsOnwards »

Show Forum Drop Down Menu