[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

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 (preferab

[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

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

[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: >> >> >> Profesor titular >> Profesor asociado >> Profesor adjunto >> Jefe de trabajos pracáá½ticos >> Ayudante de cat½edra >> Ayudante a

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 opt

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 select

[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 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 0x703F

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 informatio

RE: [PHP] HTML form online

2004-11-19 Thread Gryffyn, Trevor
s 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 w

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: You would see two text lines filled in with Testing One and Testing Two. So replace the value with whatever data you're gathering from PHP. For textarea's do as su

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: php.net/

[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 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 iter

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 iterat

[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 arra

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

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'

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[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: [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> enctype="multipart/form-data"> p> > p> > p> > p> > > You should have set the max_file_size here, but it's not included. > > Why? (see archives). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syst

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> p> p> p> p> You should have set the max_file_size here, but it's not included. This must come BEFORE the input type=file and remember the value is in bytes (not KB), so the above will only let you upload a file of ap

[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 New Document test1.php3 Test Page I am Facing the problem that if i use enctype="multipart/form-data" in form object then i am unable to retrieve the values passed from .html form. So if i am using a File Upload

[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 typ

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

[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: "; for($i=0;$i"; } } else { ?> method=post

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? ) "; for($i=0;$i"; } } else { ?> " method="post"> One Two Three -- roger --- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > > dear all, > > i ran my code below on ie and it w

Re: [PHP] HTML form element

2002-04-12 Thread Chris Wesley
Name your select element "majors[]" and when the form is submitted, your form handler will get an array, not a scalar, called $majors. Step through the array, and you'll get all the options that were selected. ~Chris /"\ \ /

[PHP] HTML form element

2002-04-12 Thread Brian McLaughlin
Hi all. I have a tag like this on a php-generated web page. Art Biology Business and Economics" etc. etc. My question is... since this is a multiple-select list, in the php script that this form calls on a submit, how do I determine which options have been selected? If I look at

[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 ""; echo ""; echo "Display"; echo "Don't Display"; echo ""; echo ""; Thanks!

RE: [PHP] html form question

2001-07-26 Thread Lenar Lõhmus
> while(list($value) = mysql_fetch_row($result)) > echo "$value\n"; > } > ?> > > - seb > > -Original Message----- > From: Lenar [mailto:[EMAIL PROTECTED]] > Sent: 26 July 2001 13:16 > To: [EMAIL PROTECTED] > Subject: Re: [PH

RE: [PHP] html form question

2001-07-26 Thread Seb Frost
essage- 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: Why you use mysql_result function? This can be done a bit simpler way (and more effective): $event\n"; ?

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

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): $event\n"; ?> Lenar > >$table="shoots"; > require ("connect.php4"); > $result=MYSQL_QUERY( "SELECT eventName FROM $table"); > $num_rows = mysql_n

RE: [PHP] html form question

2001-07-25 Thread Seb Frost
Funny you should ask - just done it myself: "; echo mysql_result($result,$i,"eventName"); echo ""; } MYSQL_CLOSE(); ?> - seb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] html form question

2001-07-25 Thread Lawrence . Sheed
e $tmpOut = $tmpOut . ">" . MYSQL_RESULT($result,$count,$optiontext) . ""; } $tmpOut = $tmpOut . ""; return ($tmpOut); } -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: July 26, 2001 9:02 A

Re: [PHP] html form question

2001-07-25 Thread Matt Greer
> What's the method for populating any number of html > form ... 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:

Re: [PHP] html form question

2001-07-25 Thread David Robley
On Thu, 26 Jul 2001 10:27, CGI GUY wrote: > What's the method for populating any number of html > form ... 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!!! You

[PHP] html form question

2001-07-25 Thread CGI GUY
What's the method for populating any number of html form ... 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!!! __ Do Y