PHP Newsletter

Join now and receive weekly updates pertianing to the world of PHP.

Polls

What do you think about the new PHPMine Design?
Awesome
Not Bad
Sucks

PHP Gigs By City

PHP Jobs By Topic

Advertisements

A few questions about website building with PHP and Dreamweaver?

Asked 2010-03-15 08:51:42 by SHAWN E

I have decided to tackle my first website. I have been trying hard to educate myself via various tutorials. I have a few questions I hope someone can answer. I do have a little programming experience but not an expert by no means. Here are my questions:

1.) How do I change the font of a single word in Dreamweaver (CS4) "design view." Seems simple enough but with Frontpage you could simply highlight the word (or even a single character) and use the toolbars to change the font style and size. I'm probably overlooking something simple but with all of the complexity I'm trying to learn the last thing I want to worry about is fonts.

2.) How do I create a function and call it in multiple forms making it "universal?" Do I write it on a separate form and then reference that form somehow before I call the function? Example would be awesome here.

3.) How can I create a PHP script on one form and call it in another form. Do I have to use the whole script when I call another form or can I reference part of the script.

Thanks for the help in advance. If I'm not making much sense I'll try to explain more thoroughly.
OK no answers to this question(s) yet. I guess I'm too complicated. I did find the answer to my first question. To change the font style and other attributes you have to change from html to css in the properties box (mine is located at the bottom of the screen by default.) Maybe this will help someone else who can't see the forest for the trees. Still need help with the other questions though. Anyone?

Anwered 2010-03-16 00:41:34 by Firzen

1) Use the 'Code View'/CSS to change the tags manually (I rarely, if ever use Design View, it is so complicated and annoying)

2) Create the function in a separate file (put it in a folder named 'includes', for this example it will be "includes/func1.php:) and then include it in the file using the tag:
<?php include("includes/func1.php"); ?>

3) Same as above - don't create the script 'on the form', put it in a separate file and reference it using the include() function.

Oh and I'm sorry I didn't get to your question quick enough :/ Stupid answers didn't show it to me till now.

Questions and answers provided by the Yahoo Answers Community.