Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7033191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:01:59+00:00 2026-05-28T01:01:59+00:00

I am using a PHP page to construct an email. Part of the email

  • 0

I am using a PHP page to construct an email. Part of the email text is provided by $POST variables from an ealier page. Some of the variables contain spaces, which is causing the strings to truncate to a single word in my email. Any syntax ideas on how to get the whole string into the text of my email? ‘ . $_POST[‘VariableName’] . ‘ is obviously not working.

$message = '
<html>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>EuroClassic Transfer Notice</title>
</HEAD>

<body bgcolor="#F5EEDB">

<TABLE ID=hor-minimalist-b SUMMARY=EuroClassic Customer>
<THEAD>
<TR>
<TH colspan=4 scope=col>Shipping Logistics:</th>
</TR>
</THEAD>
<TBODY>

<TR>
<TD>Shipping From: </TD>
<TD><INPUT type=text size=35 name=from value=' . $_POST['from'] . '></TD>
<TD>Shipping To: </TD>
<TD><INPUT type=text size=35 name=ToLocation value=' . $_POST['ToLocation'] . '></TD>
</TR>
<TR>
<TD>PO Number: </TD>
<TD><INPUT type=text size=20 name=PO value=' . $_POST['PO'] . '></TD>
<TD>Address: </TD>
<TD><INPUT type=text size=35 name=address value=' . $_POST['address'] . '></TD>
</TR>
<TR>
<TD>Ship Date: </TD>
<TD><INPUT type=text size=20 name=ShipDate value=' . $_POST['ShipDate'] . '></TD>
<TD>City/State/ZIP: </TD>
<TD><INPUT type=text size=35 name=city value=' . $_POST['city'] . '></TD>
</TR>
<TR>
<TD>Arrival Date: </TD>
<TD><INPUT type=text size=20 name=ArrivalDate value=' . $_POST['ArrivalDate'] . '></TD>
<TD>Freight: </TD>
<TD><INPUT type=text size=20 name=cost value=' . $_POST['cost'] . '></TD>
</TR>
</TBODY>
</TABLE>

</div>
</body>
</html>
';
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:01:59+00:00Added an answer on May 28, 2026 at 1:01 am

    Just put quotes around the attribute values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to scrape a price from a web page using PHP and Regexes.
I am using CodeIgniter to pass some parameters to my PHP page through $_POST
In my application am submiting my form by using post for a php page.
Like many variables in PHP using ini_set() on a page doesn't actually work. I've
while reading about declare construct from php manual i tried the following example using
Im trying to create a iPhone Objective C login page using PHP/MySQL to authenticate.
Using Php I would like to extract the current Url of a page including
Each page on my website is rendered using PHP. Each PHP file uses around
I'm using PHP to redirect a page back to the previous page with the
How can I open a web-page and receive its cookies using PHP? The motivation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.