[PHP] Wrong result (345php.tmp) instead a filepath from input file type=file...

2002-01-14 Thread helmut ott

I have a page with a html-form headed with 
...ENCTYPE=multipart/form-data ...

and multiple inputs,e.g.:
input type=file name=formname1...
If I select a file,e.g. abc.jpg with the path c:\abc.jpg
I get a value like 345php.tmp instead of c:\abc.jpg.

Any idea what is wrong?



[PHP] Can PHP top limited Windows Explorer? (Visual not filelistlike Image selectiosn for upload forms)

2001-05-10 Thread Helmut Ott

Are there any visual Image select solutions for upload forms topping the limited 
Windows Explorer?

If you have an  input type=file the explorer opens and gives you a list of files in 
the directory. Thats nice exept u need to select a specific image from a larger number 
of image files.

Is there any way to get a SELECTABLE list of images shown in a PHP replacement of 
Windows Explorer?

Really curious...

Helmut






[PHP] GD installed but imageFUNCTIONS dont work

2001-02-27 Thread Helmut Ott

Hi, 
hopefully somebody can help to solve this miracle.

My phpinfo

My provider (and phpinfo) says GD =1.62 is installed.
But when I run scripts using the php-imagefunctions 
that require gd like 
?php
Header ("Content-type: image/jpeg");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", 
  "Testing... Omega: #937;");
ImageJPEG ($im);
ImageDestroy ($im);
?
The lines containing the functions like createImage(), or ImagecolorAllocate() return 
error messages.
How can I find out without doubt whether the functions work properly or not?
Every advice is appreciated.

Helmut
  





[PHP] generate e.g. circles on the fly with coordinates for postioning

2001-02-24 Thread Helmut Ott

Can php + what modules do this and 
has anybody succeeded to do something like the followingbefore?

I want to generate simple images on the fly, e.g. a 50px circle on a transparent 
background of 200x200 px using php.

I want to position the circle on the background using  x and y coodinates. Is this 
possible with what php and additional tools?

Thanks alot

Helmut



[PHP] list only checkbox-marked records on a new page

2001-02-14 Thread Helmut Ott

Hi, I need help from checkbox-specialists needed !


I have a list of records each carrying a checkbox. 

The source in this original page looks like this as for the checkbox - the value of 
"value" equals the ID of the record:

input type=checkbox name=marked[] value=1 /TD...
input type=checkbox name=marked[] value=2 /TD...
input type=checkbox name=marked[] value=3 /TD...


The user shall mark interesting records and upon submitting the form shall be shown on 
a new page showing only the marked records.

The script for this new page exept for the query is shown below.


WHAT MUST THE QUERY ON THIS NEW PAGE LOOK LIKE? 
e.g.

Thanks for any help!

Helmut

TABLE TR 
 
?  for (list($key, $val) = each($id))
{
echo $key . " " . $val . "BR\n";
}
$val = urlencode(mysql_result($result,$i,"id"));
echo "TDinput type=checkbox name=marked[]";
echo " value=";
print_sp($val);
echo " checked/TD";
echo "TDbA HREF=$PHP_SELF?func=browselistpar=";
$val = urlencode(mysql_result($result,$i,"id"));
print_sp($val);
echo "";
$val = mysql_result($result,$i,"id");
print_sp(w.$val);
echo "/A/b/TD";

echo "TD fontcolor=#80";
$val = mysql_result($result, $i, "field1");
print_sp($val);
echo "/font/TD";

echo "TD fontcolor=#80";
$val = mysql_result($result, $i, "field2");
print_sp($val);
echo "/font/TD";

echo "/TR";
endfor;
echo "/Td/TR/TABLE";

if ($result){mysql_free_result($result);}
endif /* Show selected */ ?