[PHP-DB] Re: posting information from a textarea

2006-07-06 Thread Dave W
O, I also tried to change it to a $_FILES array, but that didn't work either. On 7/6/06, Dave W [EMAIL PROTECTED] wrote: I seem to be having a problem posting text from a text area. I have a form that posts data into a database and there are input fields which seem to post the data fine. I know

[PHP-DB] posting information from a textarea

2006-07-06 Thread Dave W
I seem to be having a problem posting text from a text area. I have a form that posts data into a database and there are input fields which seem to post the data fine. I know this because the entry is changing in the database, but the text area text doesn't seem to be posting. I double checked to

Re: [PHP-DB] posting information from a textarea

2006-07-06 Thread Brad Bonkoski
stripslashes should not be needed... if anything addslashes() may be needed if you have single quotes in the text area. I would say step 1 is to echo out your insert query to the page before you even excute the insert, to verify the query, and that you are getting the proper information from

Re: [PHP-DB] posting information from a textarea

2006-07-06 Thread Dave W
The inputs are posting, but the textarea still isn't. Argh! On 7/6/06, Brad Bonkoski [EMAIL PROTECTED] wrote: stripslashes should not be needed... if anything addslashes() may be needed if you have single quotes in the text area. I would say step 1 is to echo out your insert query to the page

Re: [PHP-DB] Re: posting information from a textarea

2006-07-06 Thread Chris
Dave W wrote: I saw this bug: http://bugs.php.net/bug.php?id=22427. Could this be related to problem I'm having? Simplify your example and test it, only way to know. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP-DB] Re: posting information from a textarea

2006-07-06 Thread Chris
Dave W wrote: I saw this bug: http://bugs.php.net/bug.php?id=22427. Could this be related to problem I'm having? Actually, show us the form you're trying to submit before doing anything else. Since we haven't seen any html or php code, guessing it's a bug is a bit of a stretch. --

[PHP-DB] Taking care of an auto_increment field!

2006-07-06 Thread Miguel Guirao
Hi pals, I have a module in my PHP application that creates and id (string + the auto_increment field). I read the last auto_increment value from the table, then in my code I use it as the base to create a second id (the auto_increment field + string). This happens for as many hardware the

Re: [PHP-DB] Taking care of an auto_increment field!

2006-07-06 Thread Chris
Is there a way to use transactios in MySQL?? Of course. They only work properly with innodb tables though. This is all in the mysql documentation (http://dev.mysql.com) Or maybe using a global variable accesed by all the processes running in the server? You could create a global

Re: [PHP-DB] Re: posting information from a textarea

2006-07-06 Thread Dave W
I'll show you all the steps it passes through. Here's the form: form action=proc.php method=post fieldset label for=MottoMotto:/label input class=text type=text size=25 name=motto value=?php if($form-value(motto) == ){ echo $session-nationinfo['motto'];

Re: [PHP-DB] Re: posting information from a textarea

2006-07-06 Thread Chris
Dave W wrote: I'll show you all the steps it passes through. Here's the form: form action=proc.php method=post fieldset label for=MottoMotto:/label input class=text type=text size=25 name=motto value=?php if($form-value(motto) == ){ echo

Re: [PHP-DB] Re: posting information from a textarea

2006-07-06 Thread Dave W
hmm..interesting. Neither the motto or desc is showing up in the array. I made a simple form and the echo 'post vars: ' . print_r($_POST, true) . 'br/'; works fine. I'm just perplexed on why the motto is still working and not the desc. Maybe it's because I'm using a fieldset, but then why

Re: [PHP-DB] Re: posting information from a textarea

2006-07-06 Thread Dave W
I think I might have found the problem, but I'm not sure how to fix it. I'm just going to rebuild the form and it make it seperate (with all the database calls in one page). For some reason, if I add another field before the motto and i change it, it changes motto too...w/e I'll just make a new

[PHP-DB] Populating an array to the next script!

2006-07-06 Thread Miguel Guirao
Hello, Is there a way to populate an array from one script to the next one? I'm using a form, and a hidden field for such desire: input name=hwt[] type=hidden value=?php echo($hwGSM);? but it returns this: input name=hwt[] type=hidden value=Array then I pretend to read the array again at