close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

expecting T_STRING T_VARIABLE T_NUM_STRING

Thread began 4/16/2014 9:46 am by Paul | Last modified 4/16/2014 1:00 pm by Jason Byrnes | 1672 views | 10 replies |

Paul

expecting T_STRING T_VARIABLE T_NUM_STRING

This is the complete error I am receiving once I submit a form.

Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /webroot/c/e/centu002/primary/www/webassist/email/waue_sellform_1.php on line 27

Here is line 27:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverDirectory"] ."?php echo $WA_DFP_UploadStatus[".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"] ."?php echo $WA_DFP_UploadStatus[");

Anyone have any thoughts?

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

change that line to:


$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverDirectory"] ."".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]."");

Sign in to reply to this post

Paul

Jason,

Thanks. It worked perfectly except I'm only getting one image in the email. I tested it with uploading images using both File Fields.

Any thoughts?

Sign in to reply to this post

Jason ByrnesWebAssist

you only have one attachment set up, you need to edit the UE behavior to set up the second attachment

Sign in to reply to this post

Paul

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Paul

PM

Sign in to reply to this post

Paul

That did it, Jason!

Thanks for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/email/waue_sellform_1.php file I changed:
[code]$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverDirectory"] ."".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]."");[code]



to:
[code]$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverDirectory"] ."".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"] ."".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]."");[code]


on the sellform.php page, you had both uploads set to use the file file field, i edit that so one used the file filed and the other used the Contact_me_group_2_File field so that both images would be uploaded.

Sign in to reply to this post

Paul

So grateful...thanks!

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