Can anybody help me this... i need to insert html in a php file
php file is this
<?php
/*
$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2002 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'FAQ');
define('HEADING_TITLE', 'FAQ');
define('TEXT_INFORMATION', 'Put here your FAQ information.');
?>
how to insert html on the text information so that it would be nice to see even though it is a long word text information...
pls give an example
thanks
Latest News: (loading..)
Insert html on php file Help
Started by jane2020, Apr 01 2010, 09:54
10 replies to this topic
#1
Posted 01 April 2010, 09:54
#2
Posted 01 April 2010, 11:07
You can use all html formatting tags or you can use css formatting. A good place to get more info is here
Example
Example
define('TEXT_INFORMATION', 'Put here your FAQ information. This is <b>bold</b> This is a <br> line break.');
Looking for a way to create your own osCommerce template ? click
#3
Posted 01 April 2010, 11:38
An easy way to place content in a define & avoid the chances of missing stuff you should have escaped is to use the here-doc method:
$mytext =
<<<MYTEXT
<div class="main">Lot's of info here.</div>
MYTEXT;
define('TEXT_INFORMATION', $mytext);
Sam
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#4
Posted 01 April 2010, 13:06
thanks for the reply but i cant purely satisfy i was confused..
how about insert this text in the php with corresponding html tags
tex to be inserted
insert the tex here
can some one organize it for me... really need help
thanks
how about insert this text in the php with corresponding html tags
tex to be inserted
Quote
Do I need to register in order to make a purchase?
No. You can do your shopping and checkout without logging. Registration will be completed upon checkout.
How do I place an order?
Please read our guide on Placing Order.
Can you provide more information about your products?
Lovelyspree will provide as much information on our products in terms description, measurements, fabric and material information. We will also provide a wide ray of images for you to aid your shopping experience. However, if you have additional questions regarding the item, you can email us using the contact form.
How can I know if an item is available or out of stock?
You can refer to the stock information provided for every product in their product description page. However this information is provided for reference only. We can only confirm the stock after payment is made, and our overseas supplier get back to us.
How do I know if I the item would fit me?
We have provided all measurements in product description. We have also provided 'Size Chart & Guide' to aid you in reading the measurements.
What payment methods do you accept? Can I pay by credit card? What credit cards do you accept??
Please read our guide on Payment.
How do I use the Discount Voucher or Coupon Code?
Simply enter the coupon code before checkout. You will be able to see the adjusted price on your shopping cart after entering the code.
Am I able to change my order?
After payment, you can email us the changes you would like to make. We will update your order.
How I can track my order?
Please read our guide on tracking order in Member Account.
How long does it take to receive my order?
- If all items in the order have ready stock, you will receive your item(s) within 3-5 working days.
- All orders usually be processed and you can receive your item(s) within 10-14 working days.
To keep our prices low and offer wider range of products, most of our items do not have ready stock. Though we do our best to minimize such incidents, there may be delay in shipment sometimes, and we apologize for any inconvenience caused.
No. You can do your shopping and checkout without logging. Registration will be completed upon checkout.
How do I place an order?
Please read our guide on Placing Order.
Can you provide more information about your products?
Lovelyspree will provide as much information on our products in terms description, measurements, fabric and material information. We will also provide a wide ray of images for you to aid your shopping experience. However, if you have additional questions regarding the item, you can email us using the contact form.
How can I know if an item is available or out of stock?
You can refer to the stock information provided for every product in their product description page. However this information is provided for reference only. We can only confirm the stock after payment is made, and our overseas supplier get back to us.
How do I know if I the item would fit me?
We have provided all measurements in product description. We have also provided 'Size Chart & Guide' to aid you in reading the measurements.
What payment methods do you accept? Can I pay by credit card? What credit cards do you accept??
Please read our guide on Payment.
How do I use the Discount Voucher or Coupon Code?
Simply enter the coupon code before checkout. You will be able to see the adjusted price on your shopping cart after entering the code.
Am I able to change my order?
After payment, you can email us the changes you would like to make. We will update your order.
How I can track my order?
Please read our guide on tracking order in Member Account.
How long does it take to receive my order?
- If all items in the order have ready stock, you will receive your item(s) within 3-5 working days.
- All orders usually be processed and you can receive your item(s) within 10-14 working days.
To keep our prices low and offer wider range of products, most of our items do not have ready stock. Though we do our best to minimize such incidents, there may be delay in shipment sometimes, and we apologize for any inconvenience caused.
insert the tex here
<?php
/*
$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2002 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'FAQ');
define('HEADING_TITLE', 'FAQ');
define('TEXT_INFORMATION', 'Put here your FAQ information.');
?>
can some one organize it for me... really need help
thanks
#5
Posted 01 April 2010, 13:27
to clarify this is the template i used http://www.freetemplatesonline.com/templates/Pets-Store-175.html
there is information box there,
there is information box there,
#6
Posted 01 April 2010, 15:03
jane2020, on 01 April 2010, 13:06, said:
thanks for the reply but i cant purely satisfy i was confused..
how about insert this text in the php with corresponding html tags
tex to be inserted
insert the tex here
can some one organize it for me... really need help
thanks
how about insert this text in the php with corresponding html tags
tex to be inserted
insert the tex here
<?php
/*
$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2002 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'FAQ');
define('HEADING_TITLE', 'FAQ');
define('TEXT_INFORMATION', 'Put here your FAQ information.');
?>
can some one organize it for me... really need help
thanks
I don't think you need help. I think you expect somebody to do it for you.
You got a free software, a free template, now you want somebody to insert the contents for you.
I think you have 2 options
1) You sit down and learn how to do it your self, using all help you can get from the forum here
2) You hire a developer to do it for you.
Have a nice day
Looking for a way to create your own osCommerce template ? click
#7
Posted 01 April 2010, 15:18
I need 1 sample only and i will do it the rest... im just asking a sample.. if you dont mind to help me it's ok.. sorry for inconvenience...
i hope there is one sample i could see this forum.. thanks
i hope there is one sample i could see this forum.. thanks
#8
Posted 01 April 2010, 16:01
jane2020, on 01 April 2010, 15:18, said:
I need 1 sample only and i will do it the rest... im just asking a sample.. if you dont mind to help me it's ok.. sorry for inconvenience...
i hope there is one sample i could see this forum.. thanks
i hope there is one sample i could see this forum.. thanks
<?php
/*
$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2002 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'FAQ');
define('HEADING_TITLE', 'FAQ');
define('TEXT_INFORMATION', '
<B>Do I need to register in order to make a purchase?</b><BR>
No. You can do your shopping and checkout without logging. Registration will be completed upon checkout.
<BR><BR>
<B>How do I place an order?</b><BR>
Please read our guide on Placing Order.
<BR><BR>
<B>Can you provide more information about your products?</b><BR>
Lovelyspree will provide as much information on our products in terms description, measurements, fabric and material information. We will also provide a wide ray of images for you to aid your shopping experience. However, if you have additional questions regarding the item, you can email us using the contact form.
<BR><BR>
<B>How can I know if an item is available or out of stock?</b><BR>
You can refer to the stock information provided for every product in their product description page. However this information is provided for reference only. We can only confirm the stock after payment is made, and our overseas supplier get back to us.
<BR><BR>
');
?>
Now you can finish it.
Avoid the most asked question. See How to Secure My Site and How do I...?
#9
Posted 01 April 2010, 16:07
@ mdtaylorlrim
A very special thanks for you..
A very special thanks for you..
#10
Posted 03 April 2010, 14:29
@ mdtaylorlrim
I put your example and then save it.. when i click about us it display in a white blank page... why is that happened?? any idea??
I put your example and then save it.. when i click about us it display in a white blank page... why is that happened?? any idea??
#11
Posted 03 April 2010, 14:36
it's worked now.... thanks














