close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problems with a second file upload field

Thread began 1/08/2015 9:14 am by s.joiner74419001 | Last modified 1/12/2015 12:07 pm by Jason Byrnes | 747 views | 9 replies |

s.joiner74419001

Problems with a second file upload field

In a Secure members area, I have a 'New Enquiry' form which has a 'File Upload Field' which is working fine. When the Member enters the enquiry their enquiry history. the same page has a form called 'Add Correspondence' which the member uses to add to an enquiry they previously made. this form also has an upload file field. I can not seem to get this second file upload to work. I have attached the two pages in question. The memo_new_enquiry.php page has the working upload file field. The enq_detail.php page has the one I can't get working! Am I missing something?
Thanks in advance

Attached Files
enq_detail.php
memb_new_enquiry.php
Sign in to reply to this post

Jason ByrnesWebAssist

the forms encoding type is not set.

for file upload to work, the encoding type needs to be set to multipart/form-data

in the tag selector, select the form tag, then in the properties inspector, set the encoding type for the form tag to multipart/form-data

Sign in to reply to this post

s.joiner74419001

I have such a short memory span sometimes !! Thanks Jason, completely forgot about that.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

s.joiner74419001

Jason, another problem I have is on the enq_detail page I want to hide the table structure for the correspondence post if there hasn't been one submitted. Currently if there hasn't it displays an empty table. I don't think I can use the 'If record is not empty' because the record set is using a left join with the enquiries table which always shows the enquiry. I have tried to use a 'show if' server behaviour but haven't been successful. Any pointers please!

Attached is the latest page!

Sign in to reply to this post

Jason ByrnesWebAssist

if you echo the crspndnce.enquiry_id for a record where there is no correspondence, what is returned?

<?php echo($rowrsEnqDetails['crspndnce.enquiry_id']); ?>


i would think this would be 0?

Sign in to reply to this post

s.joiner74419001

I kind of understand that :-/ .. But I still can't seem to configure the 'Show If' rule for it to work.

Sign in to reply to this post

Jason ByrnesWebAssist

if the return value is 0 when there are no correspondence , the if statement would be:

<?php if($rowrsEnqDetails['crspndnce.enquiry_id'] > 0) { ?>
show table here
?>

Sign in to reply to this post

s.joiner74419001

I assume you mean setting the access rule as in the attached screen shot. This doesn't work, it just completely hides the div block what ever the result.

Sign in to reply to this post

Jason ByrnesWebAssist

no, that is not what I mean


what i mean is using the if statement code i supplied around the table.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...