close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Attachments not working, HTML editor required

Thread began 1/29/2020 9:56 am by lr_leal239405 | Last modified 1/30/2020 7:26 pm by Ray Borduin | 65 views | 3 replies |

lr_leal239405

Attachments not working, HTML editor required

I created an email form per my boss's request. The tools are great, it sends the email and goes into the database like any other form using the Webassist functions. I used the HTML editor for the body message as well. Great stuff. The one thing I keep getting is an error for the attachments.

Notice: Undefined index: in /home/public_html/contacts/mailmgr/emailform/cacmail.php on line 61

Line 61 is

$Email->addAttachment("attachments_folder/".$WA_DFP_UploadStatus["WA_UploadResult1"][""] ."");

(The attachment does get uploaded though).

And..what is the way to make the HTML Editor 'required', since it's not an <input type 'text' field.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the wrong binding was used for the attachment. I think the attachment line should be:

$Email->addAttachment("attachments_folder/".$WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_1"]["serverFileName"] ."");

What kind of form validation are you using on the page? You should be able to make it required, but how you do that depends on the type of validation you are using to begin with.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

Yeah, the upload file works now.

I use the simple html validations a lot, like 'required' on the input fields.

I'll try using the php validation that webassist generates.

Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

Server Validations should work. If you use the webassist JQ Validation we have a solution for that as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...