Re: POST problem, extended

From: Date: Sat, 04 Dec 2004 01:33:47 +0000
Subject: Re: POST problem, extended
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37579@lists.php.net to get a copy of this message
try posting the whole damn script...how the hell else are we supposed to help you? Maybe 'cause its friday, nut my mind reading skills are not working well bastien
From: "H. J. Wils" <double_u1@hotmail.com> To: php-db@lists.php.net Subject: Re: [PHP-DB] POST problem, extended Date: Sat, 04 Dec 2004 02:24:02 +0100 ok, to brighten everything a bit :-) te code below is pseudo-code, that means use session_start(); in the correct way. I use the echo, to output the data. More over, the code works fine for small sized variables, but whit huge data, thats why i use the post method, it doesn't seam to work any more. Any other suggetions? Getting crazy around here..... :( From: Clod <cdelfino@pycontech.com> To: "H. J. Wils" <double_u1@hotmail.com> Subject: Re: [PHP-DB] POST problem, extended Date: Sat, 04 Dec 2004 08:14:11 +0800 MIME-Version: 1.0 Received: from pycontech.com ([202.57.71.234]) by mc9-f17.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Fri, 3 Dec 2004 16:23:15 -0800 Received: from [192.168.1.146] by pycontech.com(MDaemon.PRO.v7.2.1.R)with ESMTP id md50000055129.msgfor <double_u1@hotmail.com>; Sat, 04 Dec 2004 08:24:17 +0800 X-Message-Info: JGTYoYF78jE/Mp0h+XGYF7nzR4dgbKBZ User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en References: <BAY2-F778E3FA647A22B439F23BC1B10@phx.gbl> X-Authenticated-Sender: cdelfino@pycontech.com X-Spam-Processed: pycontech.com, Sat, 04 Dec 2004 08:24:17 +0800(not processed: message from valid local sender) X-MDRemoteIP: 192.168.1.146 X-Return-Path: cdelfino@pycontech.com X-MDaemon-Deliver-To: double_u1@hotmail.com X-MDAV-Processed: pycontech.com, Sat, 04 Dec 2004 08:24:20 +0800 Return-Path: cdelfino@pycontech.com X-OriginalArrivalTime: 04 Dec 2004 00:23:16.0194 (UTC) FILETIME=[72C3CC20:01C4D997] H.J. Wils, /-------> Below code is means you're putting the content of $_POST['body'] to a session variable $_SESSION['mailtxt'],btw...put session_start() first... <?php $_SESSION['mailtxt'] = $_POST['Body']; ?> /-------->end /--------> Below HTML code means that you're getting the content from $_SESSION['mailtxt'], however this form-textarea value has not yet set in the session var and echoing or putting it in textarea is useless... <form> <textarea name='body'><?php $_SESSION['mailtxt'] ?></textarea> <input type=submit> </form> /-------->end how about a try to output session posted data... <?php session_start(); $_SESSION['mailtxt'] = $_POST['body']; if (isset($_POST['body'])) { echo "Session Data: ".$_SESSION['mailtxt']; } else { ?> <form> <textarea name='body'></textarea> <input type=submit> </form> <? } ?> cd H. J. Wils wrote:
simplified, my code is as follows: ---------------------------------------------------- document -------------------------------------- <?php $_SESSION['mailtxt'] = $_POST['Body']; ?> <form> <textarea name='body'><?php $_SESSION['mailtxt'] ?></textarea> <input type=submit> </form> recalling: in some way, is de session variable not filled with the POSTed value... ---------------------------------------------------- end document -------------------------------- _________________________________________________________________ MSN Search, for accurate results! http://search.msn.nl
_________________________________________________________________ Hotmail en Messenger on the move http://www.msn.nl/communicatie/smsdiensten/hotmailsmsv2/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#37579) next »