I am pretty new to PHP. How do you add a line break to the bit of fedex string in the following function?
tep_draw_textarea_field('comments', 'soft', '60', '5', 'Shipped via Fedex www.fedex.ca Tracking number:');
Here is how the functi开发者_开发技巧on is defined:
function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '')
use double quotes and a "\n":
tep_draw_textarea_field('comments', 'soft', '60', '5',
"Shipped via Fedex www.fedex.ca Tracking number:\n");
A line break is represented by "\n";
The following code will insert a line break (note the double quotes):
tep_draw_textarea_field('comments', 'soft', '60', '5', "Shipped via Fedex www.fedex.ca\n Tracking number:");
精彩评论