Re: [PHP] php://input

2012-01-15 Thread Frank Arensmeier
; echo $_GET['fruit']. is the fruit\n; echo I want .$_GET['quantity']. of them\n\n; } elseif($_SERVER['REQUEST_METHOD'] == 'PUT') { echo this is a put request\n; parse_str(file_get_contents(php://input),$post_vars); echo $post_vars['fruit']. is the fruit\n; echo I want

[PHP] php://input

2012-01-14 Thread Adam Tong
; echo I want .$_GET['quantity']. of them\n\n; } elseif($_SERVER['REQUEST_METHOD'] == 'PUT') { echo this is a put request\n; parse_str(file_get_contents(php://input),$post_vars); echo $post_vars['fruit']. is the fruit\n; echo I want .$post_vars['quantity']. of them\n\n; } ? I am using

Re: [PHP] Input variable from form help request

2011-09-30 Thread Richard Quadling
On 29 September 2011 23:28, PHProg php...@speedemessenger.com wrote: Hello Richard, Your suggestion worked perfectly. ... it works beautifully. Now that's what I like to hear! Glad to be of help. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html :

[PHP] Input variable from form help request

2011-09-29 Thread PHProg
I'm trying to create a standard web form that will use a PHP script to copy a file from one server to another. Both servers have the files in publicly accessible directories. The html form I'm using follows... form name=form method=post action=server2server.php Enter the filename you wish to

Re: [PHP] Input variable from form help request

2011-09-29 Thread Richard Quadling
On 29 September 2011 13:30, PHProg php...@speedemessenger.com wrote: ?php if(!@copy('http://mydomain.com/files/ .$_POST['trakname'].','/.$_POST['dirname']./.$_POST['trakname'].')) {    $errors= error_get_last();    echo COPY ERROR: .$errors['type'];    echo br /\n.$errors['message']; }

Re: [PHP] Input variable from form help request

2011-09-29 Thread Tim Streater
On 29 Sep 2011 at 13:30, PHProg php...@speedemessenger.com wrote: I'm trying to create a standard web form that will use a PHP script to copy a file from one server to another. [snip] ?php if(!@copy('http://mydomain.com/files/.$_POST['trakname'].','/.$_POST['dirna

Re: [PHP] Input variable from form help request

2011-09-29 Thread PHProg
Hello Richard, Your suggestion worked perfectly. Basically, I just copied and pasted your example and with a few, very minor adjustments, it works beautifully. Many thanks for your help. All the best. At 08:43 AM Thursday 9/29/2011, Richard Quadling wrote: On 29 September 2011 13:30,

Re: [PHP] input form save and display conflict

2009-10-27 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-10-22 at 21:32 -0400, PJ wrote: I have several input fields to update a book database. There seems to be a conflict in the way tags and text are input through php/mysql and phpMyAdmin. If I enter the data with phpMyAdmin the input fields in the php page see

Re: [PHP] input form save and display conflict

2009-10-23 Thread Ashley Sheridan
On Thu, 2009-10-22 at 21:32 -0400, PJ wrote: I have several input fields to update a book database. There seems to be a conflict in the way tags and text are input through php/mysql and phpMyAdmin. If I enter the data with phpMyAdmin the input fields in the php page see quotation marks

[PHP] input form save and display conflict

2009-10-22 Thread PJ
I have several input fields to update a book database. There seems to be a conflict in the way tags and text are input through php/mysql and phpMyAdmin. If I enter the data with phpMyAdmin the input fields in the php page see quotation marks differently than what is input in phpMyAdmin. example:

[PHP] input type=checkbox

2008-03-14 Thread John Taylor-Johnston
Am coding something. Cannot quite clear my head. I know what my SQL looks like. I just cannot see clearly to input it. What is $_POST[checkregion] going to look like? Is it going to have all the convenient commas I will need in my SQL? Or do I have to parse God knows how many checkboxes? John

[PHP] php://input

2008-03-12 Thread sinseven
http://us2.php.net/manual/en/features.file-upload.put-method.php Hello All, ?I'm trying to use a PUT request to send files to a server. I'm wondering if there's a way to return something like a pass/fail code to the stream to catch on the other side. ?PHP side I'm using the code in the Example

[PHP] POST php://input

2008-03-12 Thread sinseven
Hello All, ?I'm doing a POST using httpwebrequest in a Pocket PC C# application to send a file over a stream buffer to a php page on an Apache server. I'm able to not only get ?variablename=value via a $_REQUEST, but also the entire file over php://input. It all works, I'm just not sure it's

[PHP] Input field

2007-11-13 Thread Ronald Wiplinger
I added just into a input field 19 enclosure which was displayed from the database as: 19\ enclosure That gives me some questions: 1. where the protecting slash comes from? 2. how can I get it away when I want to display that field? 3. The slash is not to see in phpmyadmin, why not? and: 1.

RE: [PHP] Input field

2007-11-13 Thread Shelley Shyan
-Original Message- From: Ronald Wiplinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 14, 2007 9:52 AM To: PHP General list Subject: [PHP] Input field I added just into a input field 19 enclosure which was displayed from the database as: 19\ enclosure That gives me some questions: 1. where

Re: [PHP] Input field

2007-11-13 Thread Chris
Ronald Wiplinger wrote: I added just into a input field 19 enclosure which was displayed from the database as: 19\ enclosure That gives me some questions: 1. where the protecting slash comes from? Probably magic_quotes_gpc 2. how can I get it away when I want to display that field? 1)

Re: [PHP] $_POST superglobal empty, while readfile(php://input)does return data.

2007-11-04 Thread Mackatack
error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect

Re: [PHP] $_POST superglobal empty, while readfile(php://input)does return data.

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Mackatack [EMAIL PROTECTED] wrote: I have not defined any limit tags in my httpd.conf and by default apache should accept all request methods. I've stripped my apache config down to: Listen 80 NameVirtualHost *:80 VirtualHost *:80 ServerName my.server.com

[PHP] $_POST superglobal empty, while readfile(php://input) does return data.

2007-11-03 Thread Mackatack
: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do

Re: [PHP] $_POST superglobal empty, while readfile(php://input) does return data.

2007-11-03 Thread Nathan Nobbe
: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile

Re: [PHP] $_POST superglobal empty, while readfile(php://input) does return data.

2007-11-03 Thread Mackatack
); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause

Re: [PHP] $_POST superglobal empty, while readfile(php://input) does return data.

2007-11-03 Thread Jim Lucas
error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var

Re: [PHP] input on sessions vs cookies

2007-02-27 Thread Richard Lynch
Save us a lot of grief and just use PHP built-in sessions until you can prove them to not meet your needs. On Sat, February 24, 2007 7:48 pm, benifactor wrote: i would like your input on session vs cookies regarding login data like usernames/passwords ect... -- Some people have a gift link

Re: [PHP] input on sessions vs cookies

2007-02-25 Thread Robert Cummings
On Sat, 2007-02-24 at 20:05 -0800, benifactor wrote: as of right now, when the user logs in, i have a cookie storing username... then on all of the pages i need data i have it query the database and using the cookie data to retrieve user information.. is there a more secure way to do this?

[PHP] input on sessions vs cookies

2007-02-24 Thread benifactor
i would like your input on session vs cookies regarding login data like usernames/passwords ect...

Re: [PHP] input on sessions vs cookies

2007-02-24 Thread Robert Cummings
On Sat, 2007-02-24 at 17:48 -0800, benifactor wrote: i would like your input on session vs cookies regarding login data like usernames/passwords ect... How are you differentiating sessions vs cookies? Sessions are often implemented USING cookies. If you mean sessions using a session ID in the

Re: [PHP] input on sessions vs cookies

2007-02-24 Thread tedd
i would like your input on session vs cookies regarding login data like usernames/passwords ect... usernames/passwords ? Session yes, cookies no. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] input on sessions vs cookies

2007-02-24 Thread benifactor
as of right now, when the user logs in, i have a cookie storing username... then on all of the pages i need data i have it query the database and using the cookie data to retrieve user information.. is there a more secure way to do this? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] INPUT

2006-08-14 Thread Chris Shiflett
Warren Vail wrote: I would be interested to know what might get past the addslashes function that the mysql_escape_string function catches. I wrote an example to demonstrate this: http://shiflett.org/archive/184 The theory behind this type of problem is pretty easy to understand - if your

[PHP] INPUT

2006-08-10 Thread Jo�o C�ndido de Souza Neto
Hi everyone, Excuse me by off-topic. I´ve been a little trouble in showing data in html form. e.g.: In a e-commerce my client have a Sony 29 TV that when i put it in a input value, it seems just Sony 29 it´s caused by the quote in the data, someone knows how can i fix it? Thanks all. --

RE: [PHP] INPUT

2006-08-10 Thread Warren Vail
http://us3.php.net/manual/en/function.addslashes.php Good luck, Warren Vail -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:11 AM To: php-general@lists.php.net Subject: [PHP] INPUT Hi everyone, Excuse me

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
João Cândido de Souza Neto wrote: Hi everyone, Excuse me by off-topic. why; are you writing the app in ASP or something? ;-) I´ve been a little trouble in showing data in html form. e.g.: In a e-commerce my client have a Sony 29 TV that when i put it in a input value, it seems just

RE: [PHP] INPUT

2006-08-10 Thread Warren Vail
[mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:11 AM To: php-general@lists.php.net Subject: [PHP] INPUT Hi everyone, Excuse me by off-topic. I´ve been a little trouble in showing data in html form. e.g.: In a e-commerce my client have a Sony 29 TV that when i put

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
if it worked :-/ see: htmlentities() or htmlspecialchars() Good luck, Warren Vail -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:11 AM To: php-general@lists.php.net Subject: [PHP] INPUT Hi everyone, Excuse me

RE: [PHP] INPUT

2006-08-10 Thread Warren Vail
Maas [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:31 AM To: Warren Vail Cc: 'João Cândido de Souza Neto'; php-general@lists.php.net Subject: Re: [PHP] INPUT Warren Vail wrote: Just happened to think of one other thing you might want to be aware of; When a query

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
and clever functions dedicated to proper escaping of data to be put into a query. Warren Vail -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:11 AM To: php-general@lists.php.net Subject: [PHP] INPUT Hi everyone

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
question I would be interested to read about it too :-) Warren Vail -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:31 AM To: Warren Vail Cc: 'João Cândido de Souza Neto'; php-general@lists.php.net Subject: Re: [PHP] INPUT

Re: [PHP] INPUT

2006-08-10 Thread Richard Lynch
On Thu, August 10, 2006 1:54 pm, Jochem Maas wrote: Warren Vail wrote: Many of the older PHP implementations don't have the mysql_escape_string function, if not addslashes should work this is true. I would be interested to know what might get past the addslashes function that the

Re: [PHP] INPUT

2006-08-10 Thread Jochem Maas
Richard Lynch wrote: On Thu, August 10, 2006 1:54 pm, Jochem Maas wrote: Warren Vail wrote: Many of the older PHP implementations don't have the mysql_escape_string function, if not addslashes should work this is true. I would be interested to know what might get past the addslashes

Re: [PHP] input validation?

2006-01-13 Thread PHP Superman
input type=text maxlength=300 I think the attribute is called maxlength but i'm not sure, oh well add the maxlength attribute to your input tag to have a quick, clean non-javascript-realiant solution On 1/12/06, John Meyer [EMAIL PROTECTED] wrote: Stut wrote: Ok, you're clearly missing my

[PHP] input validation?

2006-01-12 Thread William Stokes
Hello, I need to check that user input text is less than 300 characters long. How? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] input validation?

2006-01-12 Thread Jay Blanchard
[snip] I need to check that user input text is less than 300 characters long. How? [/snip] string length, it's in the manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] input validation?

2006-01-12 Thread Silvio Porcellana
William Stokes wrote: Hello, I need to check that user input text is less than 300 characters long. How? Thanks -Will Try with strlen: http://php.net/strlen Silvio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] input validation?

2006-01-12 Thread Larry E. Ullman
I need to check that user input text is less than 300 characters long. How? if (strlen($_POST['input']) 300) { ... You may want to also apply trim() to the input text to get rid of extraneous white space at the beginning and end of the input. Larry -- PHP General Mailing List

Re: [PHP] input validation?

2006-01-12 Thread Austin Denyer
On Thu, 12 Jan 2006 16:56:43 +0200 William Stokes [EMAIL PROTECTED] wrote: Hello, I need to check that user input text is less than 300 characters long. How? if(strlen($UserInputText) 300){ echo(Too long); } See http://www.php.net/manual/en/print/function.strlen.php Regards,

Re: [PHP] input validation?

2006-01-12 Thread tg-php
Hmm.. I didn't see anyone ask before or after the user clicks SUBMIT? If it's before, then you should use javascript to check the form element prior to submitting (you can check realtime with the onkeydown, onkeyup events... check after a user moves off of the form element with onchange or

Re: [PHP] input validation?

2006-01-12 Thread Stut
[EMAIL PROTECTED] wrote: Hmm.. I didn't see anyone ask before or after the user clicks SUBMIT? Probably because this is a PHP list and nothing that happens on the client side is a) controllable by PHP or b) guaranteed. Whatever you do on the client side you should always validate

Re: [PHP] input validation?

2006-01-12 Thread Stut
[EMAIL PROTECTED] wrote: I disagree... PHP frequently involves interacting with or outright using alternative technologies to accomplish your goal. This includes HTML, XML, databases, etc. To effectively use PHP you need to understand your options and the pros/cons in using the other

Re: [PHP] input validation?

2006-01-12 Thread John Meyer
Stut wrote: Ok, you're clearly missing my point and while I don't want this to degrade into the usual pissing contest I do feel I need to clarify what I was saying. I completely agree that in this case Javascript should be used to provide the user with feedback as to how close to the limit

[PHP] input type=file problem (Maybe 0T)

2005-07-30 Thread Ryan A
Hey, Heres what I am doing, I have a form where a user can enter values and in the form I have a FILE box so the user can upload her pic, if she screws up anywhere (eg: putting an alphabet in her date of birth) I send her back to the form and her date of birth gets highlighted plus the value she

Re: [PHP] input type=file problem (Maybe 0T)

2005-07-30 Thread Edward Vermillion
Ryan A wrote: Hey, Heres what I am doing, I have a form where a user can enter values and in the form I have a FILE box so the user can upload her pic, if she screws up anywhere (eg: putting an alphabet in her date of birth) I send her back to the form and her date of birth gets highlighted

Re: [PHP] input type=file problem (Maybe 0T)

2005-07-30 Thread Ryan A
clip setting a VALUE=path/file but that does not work. /clip As far as I know, you can't set the initial values for 'file' inputs. It's a security thing. H, you're right,saw the same thing on google after digging a little deeper, thanks mate. Cheers, Ryan -- PHP General Mailing

[PHP] php://input (multipart support)

2005-07-28 Thread Sonia
Hi Will HTTP_RAW_POST_DATA (php://input) multipart ever be supported? I have asked this question a few times and was told it would not happen until around php 4.3 release. Although I do appreciate the PHP teams added support for all the other (PUT/POST) methods when dealing with the input stream

Re: [PHP] php://input (multipart support)

2005-07-28 Thread Tom Cruickshank
What are you trying to accomplish? Tom On 7/28/05, Sonia [EMAIL PROTECTED] wrote: Hi Will HTTP_RAW_POST_DATA (php://input) multipart ever be supported? I have asked this question a few times and was told it would not happen until around php 4.3 release. Although I do appreciate

[PHP] Input to PHP from Java

2004-09-29 Thread Rajesh Batchu
Hi, I have a page with SSL enables as below. https://email.website.com/usrfolder/one.php For this page, my customer is posting some XML data using a java output stream as below. ( pseudo code) URL url = new URL(_url); _httpsConnection= (HttpsURLConnection)

Re: [PHP] Input to PHP from Java

2004-09-29 Thread Marek Kilimajer
that is posted by the java code above in my php page. I am not getting the value in any of the standard variables. Can some one suggest me how i should read the data.. Thanks in advance, Regards, Rajesh B. http://sk2.php.net/manual/en/wrappers.php.php php://input allows you to read raw POST data

Re: [PHP] Input to PHP from Java

2004-09-29 Thread raditha dissanayake
Rajesh Batchu wrote _outputStream.flush(); _outputStream.close(); // receive response _inputStream = new DataInputStream(new BufferedInputStream(_httpsConnection.getInputStream())); OT: if you close the outputstream from URLConnection you will not be able to read

[PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread James E Hicks III
How do I get this to work? the input box is only showing He said, input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 James Hicks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] input type=text value=He said, How do I =?iso-8859-1?Q?get this to work?, with a frown size=3D50?=

2004-03-16 Thread Frank M. Kromann
Asuming the content is generated by php, take a look at htmlentities(). http://php.net/htmlentities - Frank How do I get this to work? the input box is only showing He said, input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 James Hicks --

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
input type=text value=He said, \How'm I gonna get this to work?\, with a frown size=50 Warren Vail -Original Message- From: James E Hicks III [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] input type=text value=He said, How do I

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Chris W. Parker
James E Hicks III mailto:[EMAIL PROTECTED] on Tuesday, March 16, 2004 11:08 AM said: input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 i came across this same problem recently. http://php.net/htmlentities becomes quot; chris. -- PHP General Mailing

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Jay Blanchard
[snip] How do I get this to work? the input box is only showing He said, input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 [/snip] Escape the quotes. input type=text value=He said, \How\'m I gonna get this to work?\, with a frown size=50 -- PHP General

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Jay Blanchard
[snip] Escape the quotes. [/snip] How about addslashes() and stripslashes() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
; James E Hicks III; [EMAIL PROTECTED] Subject: RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50 [snip] Escape the quotes. [/snip] How about addslashes() and stripslashes() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Chris W. Parker
Vail, Warren mailto:[EMAIL PROTECTED] on Tuesday, March 16, 2004 11:14 AM said: input type=text value=He said, \How'm I gonna get this to work?\, with a frown size=50 escaping does not work. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Hidayet Dogan
Replacing with quot; HTML entitiy may be enough. For ex: ? $value = str_replace(\, quot;, $value); echo input type=\text\ value=\$value\; ? Or input type=text value=?=$value ? Good luck, Hidayet Dogan [EMAIL PROTECTED]

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
Ahh, because it's raw html and not in php. one choice would be to encapsulate it within php input type=text value=?php echo He said, \How'm I gonna get this to work?\, with a frown;? size=50 or input type=text value=?php echo htmlspecialchars(He said, \How'm I gonna get this to work

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Chris Shiflett
--- Vail, Warren [EMAIL PROTECTED] wrote: Ahh, because it's raw html and not in php. one choice would be to encapsulate it within php input type=text value=?php echo He said, \How'm I gonna get this to work?\, with a frown;? size=50 The problem with this is that PHP is server-side, so

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
PROTECTED] Subject: RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50 --- Vail, Warren [EMAIL PROTECTED] wrote: Ahh, because it's raw html and not in php. one choice would be to encapsulate it within php input type=text value=?php echo He said, \How'm I

[PHP] Input Validation of $_SESSION values

2003-11-05 Thread Pablo Gosse
Hi all. A quick question as an extension to the threads about input validation over the past weeks. It's obviously best practice to rigorously check and validate all input coming via $_GET or $_POST, but what about $_SESSION values? Without proper checking of $_GET and $_POST, it is very easy

Re: [PHP] Input Validation of $_SESSION values

2003-11-05 Thread Chris Shiflett
--- Pablo Gosse [EMAIL PROTECTED] wrote: It's obviously best practice to rigorously check and validate all input coming via $_GET or $_POST, but what about $_SESSION values? Session data can be considered safe, but there are of course caveats. It is not possible for the user to manipulate

[PHP] php://input

2003-10-27 Thread Dodi
Can anyone share about how to use php://input instead of $HTTP_RAW_POST_DATA ? __ Mau ringtones yang gaya ? -- http://www.ponselgaya.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] input field masks

2003-09-12 Thread Bobpilly
Hello all I am trying to enforce input masks for dates that are viewable in a single html text box. For example i would like a single tect box that the user will see ##/##/ in and when they click on the field they will only be able to enter digits in the ## areas the / will remain. Is php

Re: [PHP] input field masks

2003-09-12 Thread Ryan A
Javascript is your answer. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com - Original Message - From: Bobpilly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 12, 2003 11:20 AM Subject: [PHP] input field masks

Re: [PHP] input field masks

2003-09-12 Thread Brent Baisley
PHP is server side, it has nothing to do with client side, aside from server up some information. You can, and should, validate the input using PHP after it is submitted. For client side validation you would need to use javascript. You can do what you are trying to do in javascript, but it will

[PHP] Input area allowing text formatting

2003-08-31 Thread Todd Cary
I would like to provide the surfer with a text input area that would give a means of using bold, underline and different text colors. Can this be done with PHP? Todd -- inline: NewLogo.gif

RE: [PHP] Input area allowing text formatting

2003-08-31 Thread Dynamical.biz
http://www.interactivetools.com/products/htmlarea/ this is not concerning php but javascript -Mensaje original- De: Todd Cary [mailto:[EMAIL PROTECTED] Enviado el: domingo, 31 de agosto de 2003 21:18 Para: [EMAIL PROTECTED] Asunto: [PHP] Input area allowing text formatting I would like

[PHP] Input Submi Help

2003-07-17 Thread Matt Palermo
I have a script that contains a form which goes to page1.php on the click of a submit button. Inside the form are lots of checkboxes and things to fill out that get passed to page1.php. I want to put another button in there that send all the same names and values of the checkboxes to page2.php.

[PHP] How to echo raw post message using php://input

2003-06-03 Thread XiongWei
Hi Everyone, I wrote a routine postrawdata.php for displaying HTTP raw request message. ?php $putdata = fopen( php://input , rb ); while(!feof( $putdata )) echo fread($putdata, 4096 ); fclose($putdata); ? It works properly when using a socket program to post something

Re: [PHP] input type=file name=txt_file /

2003-03-06 Thread Marek Kilimajer
Everything you need is here: http://www.php.net/manual/en/features.file-upload.php#features.file-upload.post-method John Taylor-Johnston wrote: Instead of using fread, I want to upload a *.txt file using: input type=file name=txt_file / and display it in a textarea. Where do I go now?

[PHP] input type=file name=txt_file /

2003-03-05 Thread John Taylor-Johnston
Instead of using fread, I want to upload a *.txt file using: input type=file name=txt_file / and display it in a textarea. Where do I go now? Specifically, how do I get $contents? Thanks, John ?php $filename = /usr/local/something.txt; $handle = fopen ($filename, r); $contents = fread

[PHP] Input field array ends up as Array string

2003-01-21 Thread Dan Delaney
Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes with the same name (interests[]). These values then ended up in an array ($_POST['interests']), which I then imploded into a comma separated list ($interests = implode(', ',

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Rick Emery
show us code - Original Message - From: Dan Delaney [EMAIL PROTECTED] To: Sent: Tuesday, January 21, 2003 8:33 AM Subject: [PHP] Input field array ends up as Array string Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Leon Mergen
Rick Emery [EMAIL PROTECTED] wrote in message 024801c2c15b$1a770e70$0500a8c0@honeybee">news:024801c2c15b$1a770e70$0500a8c0@honeybee... show us code Learn how to quote. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 22:33, Dan Delaney wrote: Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes with the same name (interests[]). These values then ended up in an array ($_POST['interests']), which I then imploded into a comma

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 23:03, Jason Wong wrote: Undo any configuration changes made recently, downgrade any recent upgrades etc. To paraphrase Newtown's First Law of Motion: Sorry, Newton's First Law of Motion :) Any working system tends to remain in that state unless external force is

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Dan Delaney
Well, in the process of pulling out some code into a sample page to send to the list I found the problem. It was yesterday when someone who was testing it told me about the problem, but the problem must have been going on for a week, because a week ago I added code to a global include script

[PHP] Re: PHP input and variables dynamic :)

2002-07-23 Thread Richard Lynch
INPUT TYPE = HIDDEN NAME = status[0] value = collapse onclick = document.all['tree'].status[?=$i?].value='expand'; No matter what you do, JavaScript will *NEVER* accept the [ or ] character as part of a field's NAME. Those are RESERVED keys in JavaScript. You'll have to refer to the INPUT by

[PHP] Input data for php program.

2002-05-29 Thread Sidney
Hi, I am designing a php program running in Linux, i would like to know can i design a program by adding permeter after the file name? Just like the following, adding.php is the filename and 123 ,456 is the data which i want to input for the program? [root@localhost bin]# php adding.php 123

[PHP] input

2002-03-13 Thread John Gurley
hello, Someone was kind enough to give me this code for sending a value from one page to another, but it doesn't work. I wonder if anyone can see anything wrong: ?php echo ' input name=inp type=hidden value=', $_POST['inp'], ' '; ? I want to pass $inp to another pagee. Thanks In advance

RE: [PHP] input

2002-03-13 Thread Rick Emery
?php echo ' input name=inp type=hidden value='. $_POST['inp']. ' '; ? -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 6:55 AM To: [EMAIL PROTECTED] Subject: [PHP] input hello, Someone was kind enough to give me this code for sending

Re: [PHP] input

2002-03-13 Thread Edward van Bilderbeek - Bean IT
the single quotes you use for your echo indicate that the variable in your echoed string won't be parsed double quotes indicate that it will be parsed... e.g. $test = 1 echo '$test' // prints: $test echo $test // prints: 1 Greets, Edward hello, Someone was kind enough to

Re: [PHP] input

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 20:54, John Gurley wrote: hello, Someone was kind enough to give me this code for sending a value from one page to another, but it doesn't work. I wonder if anyone can see anything wrong: ?php echo ' input name=inp type=hidden value=', $_POST['inp'], ' ';

RE: [PHP] input

2002-03-13 Thread Rick Emery
: [PHP] input the single quotes you use for your echo indicate that the variable in your echoed string won't be parsed double quotes indicate that it will be parsed... e.g. $test = 1 echo '$test' // prints: $test echo $test // prints: 1 Greets, Edward hello, Someone was kind

Re: [PHP] input

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 21:02, Edward van Bilderbeek - Bean IT wrote: the single quotes you use for your echo indicate that the variable in your echoed string won't be parsed double quotes indicate that it will be parsed... e.g. $test = 1 echo '$test' // prints: $test echo

Re: [PHP] input

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 21:07, Rick Emery wrote: Nope, that's not the problem. the $_POST[] is NOT inside single-quotes. The problem is he used commas before and after the $_POST[]. You can use commas to separate expressions when using echo. So that's not the problem. AFAICS the code

[PHP] input text file html

2002-03-05 Thread niels
I have my data in a text file delimited by tabs One field contains : a href=# onclick=windowopen('https://wwwpaypalcom/cart/add=1business=%netitem_name=xx+xx+xxitem_number=85amount=495','cartwin','width=600,height= 400,scrollbars,location,resizable,status');img

Re: [PHP] INPUT tag with default value

2001-10-24 Thread Silvia Mahiques
Dear Philip, Thank you very much, I have lost long time proving different alternatives that it's better not to implement. I prefer a safe code. Thanks again!. Cheers Silvia Mahiques Philip Olson [EMAIL PROTECTED] escribió en el mensaje

[PHP] INPUT tag with default value

2001-10-23 Thread Silvia Mahiques
Hi, I can't print a default value in a INPUT tag with TYPE=file. INPUT tag has value attribute, but it not apear in window box. input type=file name=photo size=60 maxlength=150 value=? echo $photo; ?. How can I print a default value? Thanks, Silvia Mahiques

Re: [PHP] INPUT tag with default value

2001-10-23 Thread Philip Olson
This is not possible. Default values cannot be set with type=file as if it were it would be quite a security risk.A little more information on the capability of this html form element: http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm And a related RFC :

  1   2   >