Hi,
I have a form that is designed to generate a shipment notification email to a customer. On the form is a text input field where the user will enter the package tracking number, e.g. 1Z 123 456...
I want to add this number into the body of a textarea field -- which is where the body of the email message will reside.
Right now, I have the body of the message defined in PHP:
How can I get the value of the "trackingno" input box into the textarea field (where the $trackingno variable currently is) without doing a page refresh -- either on-the-fly, or via JS "update tracking #" button?
Thanks,
--RHYNO
I have a form that is designed to generate a shipment notification email to a customer. On the form is a text input field where the user will enter the package tracking number, e.g. 1Z 123 456...
Code:
<input size="16" id="trackingno" name="trackingno" value="" type="text" />
I want to add this number into the body of a textarea field -- which is where the body of the email message will reside.
Code:
<textarea id="messagebody" name="messagebody" cols="120" rows="14" disabled><?= $body ?></textarea>
Right now, I have the body of the message defined in PHP:
Code:
$body = "Dear Joe,
Your widget has been shipped. $carrier tracking number: $trackingno .
You may track your package here:
[URL unfurl="true"]http://wwwapps.ups.com/WebTracking/processInputRequest?InquiryNumber1=$trackingno[/URL]
...etc.";
How can I get the value of the "trackingno" input box into the textarea field (where the $trackingno variable currently is) without doing a page refresh -- either on-the-fly, or via JS "update tracking #" button?
Thanks,
--RHYNO