[PHP] HTML form upload works, CURL fails when uploading file from c:

2008-01-05 Thread John Gunther
PHP 5.2.1 on Apache/Linux. Client is Firefox and IE7 on Windows XP. Uploading C:\boot.ini works great from an HTML type=file form element but fails using what should be the equivalent: curl_setopt($ch,CURLOPT_POSTFIELDS,array('peru'='@C:/boot.ini')); CURL error is failed creating formpost

[PHP] HTML form data to utf-8?

2007-02-20 Thread Jay Paulson
Just a general question that I don¹t know the answer to. I have users inputting data via an HTML form. I want to make sure that if they cut and paste from say Word that all the weird characters are converted to plain text (preferably utf-8 since that¹s what my database is). How would I go about

Re: [PHP] HTML form data to utf-8?

2007-02-20 Thread Richard Lynch
On Tue, February 20, 2007 3:49 pm, Jay Paulson wrote: Just a general question that I don¹t know the answer to. I have users inputting data via an HTML form. I want to make sure that if they cut and paste from say Word that all the weird characters are converted to plain text (preferably

[PHP] HTML form

2006-06-01 Thread Martin Marques
Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options. Now wat I did is make the current value be the selected one, but my browser

Re: [PHP] HTML form

2006-06-01 Thread John Meyer
Martin Marques wrote: Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options. Now wat I did is make the current value be the

Re: [PHP] HTML form

2006-06-01 Thread Dave Goodchild
On 01/06/06, John Meyer [EMAIL PROTECTED] wrote: Martin Marques wrote: Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options.

[PHP] Solved (Re: [PHP] HTML form)

2006-06-01 Thread Martin Marques
On Thu, 01 Jun 2006 13:06:24 -0600, John Meyer [EMAIL PROTECTED] wrote: Martin Marques wrote: doesn't seem to get it right. Here is the HTML output: SELECT name=cargo OPTION value=8Profesor titular/OPTION OPTION value=7Profesor asociado/OPTION OPTION value=6Profesor adjunto/OPTION

Re: [PHP] HTML form

2006-06-01 Thread Richard Lynch
If you have already visited the page, and chosen another option, Firefox remembers your choice for you. Quit Firefox and start over, and it should work On Thu, June 1, 2006 1:53 pm, Martin Marques wrote: Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and

[PHP] HTML form online

2004-11-19 Thread Jerry Swanson
I want to write php script that fill out HTML form online. Any ideas how to do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML form online

2004-11-19 Thread Greg Donald
On Fri, 19 Nov 2004 14:39:57 -0500, Jerry Swanson [EMAIL PROTECTED] wrote: I want to write php script that fill out HTML form online. Any ideas how to do it? http://pear.php.net/package/HTTP_Request If that isn't enough, you can open a socket connection directly to the web server:

Re: [PHP] HTML form online

2004-11-19 Thread Matthew Sims
I want to write php script that fill out HTML form online. Any ideas how to do it? If you have a form such as this: form method=post action=index.php input type=text name=line1 value=Testing One input type=text name=line2 value=Testing Two /form You would see two text lines filled in with

RE: [PHP] HTML form online

2004-11-19 Thread Gryffyn, Trevor
been run (searches and such) so the user can modify what they just did instead of re-typing it all. -TG -Original Message- From: Jerry Swanson [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 2:40 PM To: PHP List Subject: [PHP] HTML form online I want to write php

RE: [PHP] HTML form online

2004-11-19 Thread Vail, Warren
I want to write php script that fill out HTML form online. Any ideas how to do it? I'm probably reading too much into your question, but it sounds like there is another website with a form on it, and you would like to develop a script that would connect to the website, fill in the information

Re: [PHP] HTML form online

2004-11-19 Thread Jed Smith
Warren Vail wrote: If so you probably want to start here; http://www.php.net/manual/en/ref.curl.php cURL can do that? -- _ (_)___Jed Smith, Code Ninja | / __| RFBs: [email for info] | \__ \ +1 (541) 606-4145 _/ |___/ [EMAIL PROTECTED] (Signed mail preferred: PGP

Re: [PHP] html form elements as php arrays

2004-05-07 Thread John Nichel
Matthew Oatham wrote: Hi, I am retrieving data from a database and displaying results on a html so the user can edit them, I am sending the html form back to the server as an array, i.e on my html for I might have 10 name fields so in the html code all name fields are named name[] then I can

[PHP] html form elements as php arrays

2004-05-06 Thread Matthew Oatham
Hi, I am retrieving data from a database and displaying results on a html so the user can edit them, I am sending the html form back to the server as an array, i.e on my html for I might have 10 name fields so in the html code all name fields are named name[] then I can iterate through the

Re: [PHP] html form elements as php arrays

2004-05-06 Thread John Nichel
Matthew Oatham wrote: Hi, I am retrieving data from a database and displaying results on a html so the user can edit them, I am sending the html form back to the server as an array, i.e on my html for I might have 10 name fields so in the html code all name fields are named name[] then I can

[PHP] HTML Form with method=POST and enctype=multipart/form-data is not working for passing data to the web server.

2003-12-10 Thread prashant
Dear Friends These is my sample code test1.html !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLE New Document /TITLE META NAME=Generator CONTENT=EditPlus META NAME=Author CONTENT= META NAME=Keywords CONTENT= META NAME=Description CONTENT= /HEAD BODY form name=frm1

Re: [PHP] HTML Form with method=POST and enctype=multipart/form-data is not working for passing data to the web server.

2003-12-10 Thread Richard Davey
Hello prashant, Wednesday, December 10, 2003, 5:20:18 PM, you wrote: p form name=frm1 method=POST action=test1.php3 enctype=multipart/form-data p input type=text name=text1 value= p input type=file name=file1 p input type=submit name=btnsubmit value=Submit p /form You should have set the

Re: [PHP] HTML Form with method=POST and enctype=multipart/form-data is not working for passing data to the web server.

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 01:25, Richard Davey wrote: p form name=frm1 method=POST action=test1.php3 enctype=multipart/form-data p input type=text name=text1 value= p input type=file name=file1 p input type=submit name=btnsubmit value=Submit p /form You should have set the max_file_size

Re[2]: [PHP] HTML Form with method=POST and enctype=multipart/form-data is not working for passing data to the web server.

2003-12-10 Thread Richard Davey
Hello Jason, Thursday, December 11, 2003, 12:29:07 AM, you wrote: You should have set the max_file_size here, but it's not included. JW Why? (see archives). Because it's good practise, not to mention sensible? -- Best regards, Richardmailto:[EMAIL PROTECTED] --

Re: Re[2]: [PHP] HTML Form with method=POST and enctype=multipart/form-data is not working for passing data to the web server.

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 08:41, Richard Davey wrote: Thursday, December 11, 2003, 12:29:07 AM, you wrote: You should have set the max_file_size here, but it's not included. JW Why? (see archives). Because it's good practise, not to mention sensible? Possibly, if and when it is

Re[4]: [PHP] HTML Form with method=POST and enctype=multipart/form-data is not working for passing data to the web server.

2003-12-10 Thread Richard Davey
Hello Jason, Thursday, December 11, 2003, 12:52:55 AM, you wrote: JW Possibly, if and when it is supported by most browsers. IE and Mozilla recognise and support it, where are these other most browsers ? It might be an advisory, but it's still good practise. JW But in the context of the OP's

Re: Re[4]: [PHP] HTML Form with method=POST and enctype=multipart/form-data is not working for passing data to the web server.

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 09:10, Richard Davey wrote: JW Possibly, if and when it is supported by most browsers. IE and Mozilla recognise and support it, where are these other most browsers ? It might be an advisory, but it's still good practise. If you know off-hand which versions of IE

[PHP] HTML form handling

2003-08-24 Thread Chris Baxter
Hi, I am trying to send the results of a form to my email account and am having difficulty carrying the form variable through if I use an html mime type. Basically, if I send the form using a plain text format, the form results are sucessfully copied to the email, however, if I change to mime

RE: [PHP] html form array

2002-10-13 Thread Roger Thomas
try this (noticed that I've changed $foo to $_POST[foo]. after all we're livin in globals off rite? ) ? if ($_POST[submit]) { print submittedBR; for($i=0;$isizeof($_POST[foo]);$i++) { print $_POST[foo][$i].BR; } } else { ? form action=? echo $_SERVER[PHP_SELF] ? method=post

[PHP] html form array

2002-10-13 Thread tim tom
dear all, i ran my code below on ie and it works. but when i use netscape 4.76 under linux, i only get the message submitted even though i've checked some fields. what do i need to add to make it work with netscape under linux? code follows: ? if ($_POST[submit]) { print submittedBR;

RE: [PHP] html form array

2002-10-13 Thread John W. Holmes
dear all, i ran my code below on ie and it works. but when i use netscape 4.76 under linux, i only get the message submitted even though i've checked some fields. The code is running on the same box, right? Just accessing it with different browsers? what do i need to add to make it work

[PHP] html form select list selected

2002-03-20 Thread ROBERT MCPEAK
I'd like to determine the selected option in a select list based on a passed variable. The code below won't work, but I can't figure out why. Any guesses? echo form; echo select name=\display\; echo option value=\true\; if ($display==false){echo

Re: [PHP] html form question

2001-07-26 Thread Lenar
Funny you should ask - just done it myself: Why you use mysql_result function? This can be done a bit simpler way (and more effective): ?php mysql_connect(db, $user, $password); $result = mysql_query( SELECT eventName FROM $table); while(list($event) = mysql_fetch_row($result))

RE: [PHP] html form question

2001-07-26 Thread Seb Frost
Thanks for that! I was just using the same structure as I found in a code sample somewhere. - seb -Original Message- From: Lenar [mailto:[EMAIL PROTECTED]] Sent: 26 July 2001 13:16 To: [EMAIL PROTECTED] Subject: Re: [PHP] html form question Funny you should ask - just done it myself

RE: [PHP] html form question

2001-07-26 Thread Seb Frost
To: [EMAIL PROTECTED] Subject: Re: [PHP] html form question Funny you should ask - just done it myself: Why you use mysql_result function? This can be done a bit simpler way (and more effective): ?php mysql_connect(db, $user, $password); $result = mysql_query( SELECT eventName FROM $table

RE: [PHP] html form question

2001-07-26 Thread Lenar Lhmus
: Lenar [mailto:[EMAIL PROTECTED]] Sent: 26 July 2001 13:16 To: [EMAIL PROTECTED] Subject: Re: [PHP] html form question Funny you should ask - just done it myself: Why you use mysql_result function? This can be done a bit simpler way (and more effective): ?php mysql_connect(db

[PHP] html form question

2001-07-25 Thread CGI GUY
What's the method for populating any number of html form option.../option tags with query results? I've seen lots of php-embedded examples for CHECKBOX, RADIO and even SELECT, but I can't seem to figure out how to create a simple drop-down menu. HELP!!!

Re: [PHP] html form question

2001-07-25 Thread Matt Greer
What's the method for populating any number of html form option.../option tags with query results? I've seen lots of php-embedded examples for CHECKBOX, RADIO and even SELECT, but I can't seem to figure out how to create a simple drop-down menu. HELP!!! Wouldn't it just be: select

RE: [PHP] html form question

2001-07-25 Thread Lawrence . Sheed
. /select; return ($tmpOut); } -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: July 26, 2001 9:02 AM To: CGI GUY; [EMAIL PROTECTED] Subject: Re: [PHP] html form question On Thu, 26 Jul 2001 10:27, CGI GUY wrote: What's the method for populating any number

RE: [PHP] html form question

2001-07-25 Thread Seb Frost
Funny you should ask - just done it myself: ?php $table=shoots; require (connect.php4); $result=MYSQL_QUERY( SELECT eventName FROM $table); $num_rows = mysql_num_rows($result); for ($i=0;$i$num_rows;$i++) { echo option;