|
Posted by Erwin Moller on 04/17/06 14:47
Ian Davies wrote:
> hello
>
> I tried this but it then stopped sending the record to the database (still
> uploaded the file). hence my post here.
>
> ian
>
<snip>
Ian, nobody can help you based on the code you posted.
It only contains the two forms.
It is the receiving script that needs improvement.
If you want to debug your code try this:
1) Put them in the same form
2) In your receiving script, get the posted variables neatly organised for
futher examination like this:
<pre>
<? print_r($_POST); ?>
</pre>
In that way you'll get everything posted by the form on your screen.
If you want to know how to handle fileuploads in your receiving script, read
it at www.php.net:
http://nl2.php.net/manual/en/features.file-upload.php
Regards,
Erwin Moller
>> Hi Ian,
>>
>> You sent us a script that has two forms and ask why it is not one form?
>> You can simply put both the fileupload part AND the regualer formfields
>> in one form.
>> You receiving script can do both action:
>> 1) Insert the stuff in the database
>> 2) If a file is uploaded, it takes the actions you want.
>>
>> PHP is not stopping you from sending them both, neither is the
> browser/html.
>> Just try it.
>>
>> Regards,
>> Erwin Moller
Navigation:
[Reply to this message]
|