FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » POST data being truncated at "
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: POST data being truncated at " [message #180142 is a reply to message #180140] Sat, 12 January 2013 21:27 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/12/2013 11:44 AM, bill wrote:
> Script 1: I collect data, including a textarea - submitted via AJAX
> Script 2: I retrieve the data from the POST var and collate the data and
> create a human readable report which is put into a hidden field -
> submitted via AJAX
> Script 3: I retrieve the data from the POST var write the data to disk
>
> The data collected in form 1 has an embeded quote: "ok" which is passed
> via the POST array to form 2 without error.
>
> When the report (which contains the textarea containing the quote)
> passes from Script 2 to Script 3 the report is truncated just before the
> quote.
>
> Do I need to encode the report befoe putting it into a hidden form field ?
> or, anyone have any suggestions on how to debug this ?
>
> -bill

Yes, you do. But why are you passing it in a hidden field? Passing via
the session is safer, more efficient and generally a better idea.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Anyone have experience with any php debuggers?
Next Topic: QR Code>/phpqrcode/qrlib.php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 17:13:55 GMT 2024

Total time taken to generate the page: 0.23053 seconds