I have a php script to process a web form and email the contents.

It processes everything except the subject line correctly:

$emailSubject = 'Work Order: ' | $_POST['company'] ;

i don't get any syntax errors, but the email displays the subject as a mismatch of letters and numbers?

like [Wow{iOler:

written in dreamweaver. apache server on mac osx with php 5

any info would be appreciated.

The | isn't the string concatenation operator in PHP.
It's the bitwise OR operator, that's why you get the randomness.

Use

$emailSubject = 'Work Order: ' . $_POST['company'];
commented: yes +5
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.