Home > Archive > PHP DB > September 2005 > RE: [PHP-DB] PHP Forms - upload VS text
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
RE: [PHP-DB] PHP Forms - upload VS text
|
|
| Norland, Martin 2005-09-30, 6:56 pm |
| <form action=3D"<?php tpl($_SERVER['REQUEST_URI']) ?>" method=3D"post"
enctype=3D"multipart/form-data">
Beyond that it's just the $_FILES array and $_POST array.=20
cheers,
- Martin Norland, Sys Admin / Database / Web Developer, International
Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.
-----Original Message-----
From: Rui Cruz [mailto:ruicruz@fidelizarte.pt]=20
Sent: Friday, September 30, 2005 8:18 AM
To: php-db@lists.php.net
Subject: [PHP-DB] PHP Forms - upload VS text. .
Hi, I'm a fairlly experienced developer but there's something that just=20
really gets to me...
I can:
- Use a form to upload a file or files
- Use a form to write text to whaever is needed (DB, e-mail
contents,=20
etc...)
but I CAN'T
- Use the same form to do both.
I've tried so many diferent things and never got my scripts to upload a
file=20
and insert data to a DB.
I find it dificult to accept this. Is this normal or am I doing things=20
wrong? Could anyone shed some light on this issue please?=20
--=20
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
| |
| Rui Cruz 2005-09-30, 6:56 pm |
| Humm.. in the form action you use a function called tpl();
What function is that, I find no reference of it on the php.net function
list.
----- Original Message -----
From: ""Norland, Martin"" <Martin.Norland@STJUDE.ORG>
Newsgroups: php.db
To: <php-db@lists.php.net>
Sent: Friday, September 30, 2005 3:36 PM
Subject: RE: [PHP-DB] PHP Forms - upload VS text
<form action="<?php tpl($_SERVER['REQUEST_URI']) ?>" method="post"
enctype="multipart/form-data">
Beyond that it's just the $_FILES array and $_POST array.
cheers,
- Martin Norland, Sys Admin / Database / Web Developer, International
Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.
-----Original Message-----
From: Rui Cruz [mailto:ruicruz@fidelizarte.pt]
Sent: Friday, September 30, 2005 8:18 AM
To: php-db@lists.php.net
Subject: [PHP-DB] PHP Forms - upload VS text. .
Hi, I'm a fairlly experienced developer but there's something that just
really gets to me...
I can:
- Use a form to upload a file or files
- Use a form to write text to whaever is needed (DB, e-mail
contents,
etc...)
but I CAN'T
- Use the same form to do both.
I've tried so many diferent things and never got my scripts to upload a
file
and insert data to a DB.
I find it dificult to accept this. Is this normal or am I doing things
wrong? Could anyone shed some light on this issue please?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|
|
|