Search found 5 matches

by fdost
Fri Jun 28, 2002 11:01 am
Forum: PHP - Code
Topic: file upload....
Replies: 1
Views: 763

ok i got the solution.... here is what i used 'Template_Source' is my input field name $fname = $HTTP_POST_FILES['Template_Source']['name']; echo "file name: $fname<br>"; $ftype = $HTTP_POST_FILES['Template_Source']['type']; echo "file type: $ftype<br>"; $fsize = $HTTP_POST_FILES...
by fdost
Fri Jun 28, 2002 10:26 am
Forum: PHP - Code
Topic: file upload....
Replies: 1
Views: 763

file upload....

Hi I have a form that uploads a file from client machine. on php i can't get name, size or type of file. I can't copy the file either. i get this error when coping the file... "Warning: Unable to open '' for reading: Permission denied in d:\program files\apache group\apache\htdocs\php_test\uplo...
by fdost
Wed Jun 26, 2002 10:44 am
Forum: PHP - Code
Topic: PHP FORMS....
Replies: 6
Views: 2114

i removed all my echo calls, here is a full copy of my validate.php file... <?php $conn_string = "host=hostname port=5432 dbname=mydb user=name password=pass"; $connection = pg_connect($conn_string); $key = "Name"; $name = $HTTP_POST_VARS[$key]; $key = "Password"; $pass...
by fdost
Wed Jun 26, 2002 10:21 am
Forum: PHP - Code
Topic: PHP FORMS....
Replies: 6
Views: 2114

thank you all for responding...i tried as you said but i got this errro Warning: Cannot add header information - headers already sent by (output started at d:\program files\apache group\apache\htdocs\php_test\validate.php:7) i tested the validate.php with and without html head tags but got the save ...
by fdost
Wed Jun 26, 2002 9:45 am
Forum: PHP - Code
Topic: PHP FORMS....
Replies: 6
Views: 2114

PHP FORMS....

Hi all, I am new to this list hope i get a good reception ;) anyways here is my question: I have an html form(name and password) form is posted to a PHP file, where i check the nam/password against my database. I want to be able to go back to login.html if user name does not exist or go to my main p...