Re: [PHP] multiple select option alternative to field_name[]

2003-12-28 Thread Binay
Hi Terence Assign ids to multiple select field and then use id attribute of select tag in JavaScript to access (copy,del etc.) instead of using the name attribute. Hope this helps. Cheers Binay - Original Message - From: "Terence" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday,

Re: [PHP] [Newbie Guide] For the benefit of new members

2003-12-28 Thread Ma Siva Kumar
On Monday 29 Dec 2003 10:24 am, you wrote: > Hi, > > This compilation of your is really excellent. > Over the last few months i have noticed that > many posters are cleary sending messages > without having read your newby guide. IMHO > whenever that happens all of us on this list > should suggest

Re: [PHP] fopen

2003-12-28 Thread Gerard Samuel
On Sunday 28 December 2003 11:17 pm, Cesar Aracena wrote: > $fp = fopen("../files/welcome.txt", "a+"); > Change to $fp = fopen("../files/welcome.txt", "r"); Use "r" to read, when you use "a" it appends (or adds) to the file Its also suggested to use the "b" option to so it would look like $fp =

[PHP] multiple select option alternative to field_name[]

2003-12-28 Thread Terence
Dear All, The only way I know to retrieve all the values from a multiple select field is to use the square brackets after the field name ie. user_id[] The problem however is that when I use a javascript function to transfer the items from multiple_select_list1 to multiple_select_list2, I cannot u

Re: [PHP] [Newbie Guide] For the benefit of new members

2003-12-28 Thread Raditha Dissanayake
Hi, This compilation of your is really excellent. Over the last few months i have noticed that many posters are cleary sending messages without having read your newby guide. IMHO whenever that happens all of us on this list should suggest that the user should read this message in the archive

[PHP] fopen

2003-12-28 Thread Cesar Aracena
Hello, I am trying to open my first text file using PHP and my PC almost freezed... please don't laught. Here's my script: function welcometext() { $fp = fopen("../files/welcome.txt", "a+"); while (!feof($fp, 100)) { $text = fgets($fp, 100); echo $text; } fclose($fp); } What can be wr

Re: [PHP] mcrypt and PHP to encrypt values to be passed to differend server

2003-12-28 Thread Tom Rogers
Hi, Monday, December 29, 2003, 9:30:11 AM, you wrote: MW> Hello! MW> I'm trying to use mcrypt to encrypt some values (login and password) I have MW> to pass from one website to another. You will need to pass the $iv which kinda defeats the object of it, or use a null one. Here is a class I use

[PHP] [Newbie Guide] For the benefit of new members

2003-12-28 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first

[PHP] mcrypt and PHP to encrypt values to be passed to differend server

2003-12-28 Thread Mark Wouters
Hello! I'm trying to use mcrypt to encrypt some values (login and password) I have to pass from one website to another. I thook this code from the php.net website as an example: I put this in the page starting from: &password=" target="_blank">link In the destination page (destinationpage.p

Re: [PHP] need a little help all

2003-12-28 Thread Richard Davey
Hello, Wednesday, December 17, 2003, 11:50:52 AM, you wrote: wmc> Here is what i have i call 2 cookies in the top of my script, now i need to wmc> call another when another script is called but it keeps givin me the error wmc> headers already sent, wmc> now ive seen this done in other scripts but

[PHP] need a little help all

2003-12-28 Thread webmaster
Here is what i have i call 2 cookies in the top of my script, now i need to call another when another script is called but it keeps givin me the error headers already sent, now ive seen this done in other scripts but wont work for me so please help me is it in my php.ini or is it just not possible

Re: [PHP] Can't upload file greater than 11kb

2003-12-28 Thread Chris
Unfortunately, creating/editing .htaccess is not an operational requirement. Thanks anyway. Chris "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > if you are lucky LimitRequestBody could go into a .htaccess file (not > sure though been a couple of month

[PHP] Re: Simple question

2003-12-28 Thread Andy Higgins
Hi Lab, I normally use code of the following format, which I think is quite neat: //Note that you do not need curely brackets in an "if" statement is there is only one line if ($_SERVER['REQUEST_METHOD'] == 'POST') $add = $HTTP_POST_VARS['textbox']; if ($add == 'Hello') do something //

php-general Digest 28 Dec 2003 21:19:11 -0000 Issue 2499

2003-12-28 Thread php-general-digest-help
php-general Digest 28 Dec 2003 21:19:11 - Issue 2499 Topics (messages 173394 through 173402): Re: newbie mysql and php 173394 by: Chris 173395 by: tony 173396 by: tony Can't upload files > then 400K to MySQL 173397 by: ahmetax 173399 by: Raditha Dissa

[PHP] Simple question

2003-12-28 Thread Labunski
Hello, I have only one simple question.. I'm using this method to get the values from the text box: if(isset($_POST["Submit"]) && $_POST["Submit"]=="Submit") { $add = $_POST['textbox'] ; } But I don't know how to write the source for this: If the value from the textbox ($add) is "Hello" t

Re: [PHP] Maths dumbass

2003-12-28 Thread Ryan A
Hi, Thanks for replying, sorry for the late replies but was busy with the holidays. Will look in to what you guys wrote, dont fully understand it :-p so will spend some time with it and if I run into any problems will get back to ya. Cheers, -Ryan Basically, have an array of # of days per mo

Re: [PHP] Can't upload file greater than 11kb

2003-12-28 Thread raditha dissanayake
Hi, if you are lucky LimitRequestBody could go into a .htaccess file (not sure though been a couple of months since i last read the manual) Chris wrote: It has been my experience that max_file_size does terminate the upload process if you include it in the form. But you are right, if it gets t

Re: [PHP] Can't upload files > then 400K to MySQL

2003-12-28 Thread Raditha Dissanayake
hi try this article: http://www.radinks.com/upload/config.php It's a quick guide on configuring php for large file uploads. all the best ahmetax wrote: Hi, I have the following PHP code to upload files to a MySQL table. It works fine, but, I can't upload any files greater then 400K. What mi

[PHP] HELP NEEDED PLEASE - IMAP, MySQL and PHP

2003-12-28 Thread Vernon
Hello all, I have been struggling for some time now to develop or find some product that will allow me to scan documents (I have that part down no problem, using OMNIPAGE 14.0) and put then into a searchable database with a copy of it in some form that is readable like a formatted txt file. I am

[PHP] Can't upload files > then 400K to MySQL

2003-12-28 Thread ahmetax
Hi, I have the following PHP code to upload files to a MySQL table. It works fine, but, I can't upload any files greater then 400K. What might be the problem? TIA ahmet AxTelSoft-Uploading a file " method="post"> Send this file: Explanations : -- PHP General Mailing L

[PHP] Re: newbie mysql and php

2003-12-28 Thread tony
Hi, I fixed it, I have not realize that my database was not connected to a user. so when i logged as prog_tony dealer was not a member of prog_tony so it could not be found. thanks for the help "Tony" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hello > > I'm new with php just

Re: [PHP] newbie mysql and php

2003-12-28 Thread tony
the problem i get is that its say no database selected Anthony "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It looks like mysql_query is failing, add these two lines to your code, and > see what message pops up: > > ... > $dbdo = mysql_query($query,$dbcon

RE: [PHP] newbie mysql and php

2003-12-28 Thread Chris
It looks like mysql_query is failing, add these two lines to your code, and see what message pops up: ... $dbdo = mysql_query($query,$dbconnect); if(false === $dbdo) echo mysql_errno(),': ',mysql_error(); else echo 'The query worked, $dbdo value is:',$dbdo;

php-general Digest 28 Dec 2003 07:55:28 -0000 Issue 2498

2003-12-28 Thread php-general-digest-help
php-general Digest 28 Dec 2003 07:55:28 - Issue 2498 Topics (messages 173383 through 173393): Re: How New Is <<--- Begin Message --- Bingo! Thanks, everyone! And thanks especially to Andrew! You were right: I needed the action and method attributes. And then it does increment. My last ques

[PHP] Re: stop file process

2003-12-28 Thread Jed R. Brubaker
Found it! Just use exit(); "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This one should be simple. > > I am wondering if there is a simple way in which to stop the processing of a > file. > > The current example is a program that checks to see if the user is lo