[PHP] Re: Simulating a FORM POST thing (HELP!)
Hello, On 05/26/2002 04:05 PM, Georgie Casey wrote: Rite, when you see a web form, you know you can simulate the submit by filling in the values in the address field, just like a GET method, and it usually works the exact same. But how do you do it when one of the fields in the form is a file upload?!?!?! For the record, its a GIF file you've to upload. Is there any way to do this in PHP?? You may want to try this class that does precisely that. http://www.phpclasses.org/httpclient -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Simulating a FORM POST thing (HELP!)
Have a look in the manual. It's something like createfrombmp(). Might be imagecreatefrombmp(). It's in the images section of functions. You might need to have the gd library installed for it to work. You could always use fopen() and fread() to open and read the file. Use it in binary mode for images and stuff. Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... that function doest exist! Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Windows Bitmap = BMP file a WBMP is a wireless bitmap image and is designed for display on mobile phones. A lot of software doesn't understand the format. You need to use createfrombmp() not createfromwbmp() Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm getting an error message saying my BMP file i'm trying to convert isnt a valid WBMP file? is dere a difference between BMP and WBMP? I just opened my GIF file into PSP7 and and saved as a windows bmp. why isnt it working? Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ?PHP $im = createfrombmp(image); print FORM METHOD=\post\ ACTION=\actionpage.php\; print INPUT TYPE=\hidden\ NAME=\image\ VALUE=\$im\; ? you get the idea I think PHP does have other funtions for file uplading though. Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Rite, when you see a web form, you know you can simulate the submit by filling in the values in the address field, just like a GET method, and it usually works the exact same. But how do you do it when one of the fields in the form is a file upload?!?!?! For the record, its a GIF file you've to upload. Is there any way to do this in PHP?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Simulating a FORM POST thing (HELP!)
?PHP $im = createfrombmp(image); print FORM METHOD=\post\ ACTION=\actionpage.php\; print INPUT TYPE=\hidden\ NAME=\image\ VALUE=\$im\; ? you get the idea I think PHP does have other funtions for file uplading though. Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Rite, when you see a web form, you know you can simulate the submit by filling in the values in the address field, just like a GET method, and it usually works the exact same. But how do you do it when one of the fields in the form is a file upload?!?!?! For the record, its a GIF file you've to upload. Is there any way to do this in PHP?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Simulating a FORM POST thing (HELP!)
i'm getting an error message saying my BMP file i'm trying to convert isnt a valid WBMP file? is dere a difference between BMP and WBMP? I just opened my GIF file into PSP7 and and saved as a windows bmp. why isnt it working? Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ?PHP $im = createfrombmp(image); print FORM METHOD=\post\ ACTION=\actionpage.php\; print INPUT TYPE=\hidden\ NAME=\image\ VALUE=\$im\; ? you get the idea I think PHP does have other funtions for file uplading though. Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Rite, when you see a web form, you know you can simulate the submit by filling in the values in the address field, just like a GET method, and it usually works the exact same. But how do you do it when one of the fields in the form is a file upload?!?!?! For the record, its a GIF file you've to upload. Is there any way to do this in PHP?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Simulating a FORM POST thing (HELP!)
Windows Bitmap = BMP file a WBMP is a wireless bitmap image and is designed for display on mobile phones. A lot of software doesn't understand the format. You need to use createfrombmp() not createfromwbmp() Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm getting an error message saying my BMP file i'm trying to convert isnt a valid WBMP file? is dere a difference between BMP and WBMP? I just opened my GIF file into PSP7 and and saved as a windows bmp. why isnt it working? Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ?PHP $im = createfrombmp(image); print FORM METHOD=\post\ ACTION=\actionpage.php\; print INPUT TYPE=\hidden\ NAME=\image\ VALUE=\$im\; ? you get the idea I think PHP does have other funtions for file uplading though. Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Rite, when you see a web form, you know you can simulate the submit by filling in the values in the address field, just like a GET method, and it usually works the exact same. But how do you do it when one of the fields in the form is a file upload?!?!?! For the record, its a GIF file you've to upload. Is there any way to do this in PHP?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Simulating a FORM POST thing (HELP!)
that function doest exist! Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Windows Bitmap = BMP file a WBMP is a wireless bitmap image and is designed for display on mobile phones. A lot of software doesn't understand the format. You need to use createfrombmp() not createfromwbmp() Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm getting an error message saying my BMP file i'm trying to convert isnt a valid WBMP file? is dere a difference between BMP and WBMP? I just opened my GIF file into PSP7 and and saved as a windows bmp. why isnt it working? Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ?PHP $im = createfrombmp(image); print FORM METHOD=\post\ ACTION=\actionpage.php\; print INPUT TYPE=\hidden\ NAME=\image\ VALUE=\$im\; ? you get the idea I think PHP does have other funtions for file uplading though. Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Rite, when you see a web form, you know you can simulate the submit by filling in the values in the address field, just like a GET method, and it usually works the exact same. But how do you do it when one of the fields in the form is a file upload?!?!?! For the record, its a GIF file you've to upload. Is there any way to do this in PHP?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php