This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > Titles and forms





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Titles and forms
thxmacromeida

2004-04-29, 5:34 pm

I was wondering if i can write PHP code in <title></title>? Also, would anyone
tell me how i can edit forms, specifically text boxes? Like giving a background
color, borders, etc. Below is some code to change if so. Thanks

<form action="nextpage.html" method="get" name="myform">

<input type="text" value="my box" name="thebox" align="top"
maxlength="25" size="40"><br>

<input type="submit" value="Take a Look" align="middle">

</form>

Michael Fesser

2004-04-29, 5:35 pm

.oO(thxmacromeida)

>I was wondering if i can write PHP code in <title></title>?


<title><?php ... ?></title>

Or what do you mean?

>Also, would anyone
>tell me how i can edit forms, specifically text boxes? Like giving a background
>color, borders, etc.


Try it with CSS.

Micha
DiMa *TMM*

2004-04-29, 5:35 pm

thxmacromeida wrote:
> I was wondering if i can write PHP code in <title></title>? Also,
> would anyone tell me how i can edit forms, specifically text boxes?
> Like giving a background color, borders, etc. Below is some code to
> change if so. Thanks
>
> <form action="nextpage.html" method="get" name="myform">
>
> <input type="text" value="my box" name="thebox" align="top"
> maxlength="25" size="40"><br>
>
> <input type="submit" value="Take a Look" align="middle">
>
> </form>


http://www.mako4css.com/cssforms.htm

--
--
DiMa
Team Macromedia Member for Dreamweaver MX
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to
your posts: news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_g...dia.dreamweaver
http://www.macromedia.com/support/d.../technotes.html
http://www.projectseven.com/faqbase
http://dwfaq.com

http://www.macromedia.com/support/forums/etiquette.htm

www.flyingtigerwebdesign dot com


thxmacromeida

2004-04-29, 5:37 pm

Yes like that, <title><?php (codes) ?></title> I tried that but it didnt work, im not really good with PHP yet, but perhaps there is another way? Anyone know?
Michael Fesser

2004-04-29, 10:32 pm

.oO(thxmacromeida)

>Yes like that, <title><?php (codes) ?></title> I tried that but it didnt
>work, im not really good with PHP yet, but perhaps there is another way?


Maybe you could post some details or an example of what you're trying to
achieve?

Micha
thxmacromeida

2004-04-30, 4:29 am

Ok, im going to try to build a PHP script that searches my DB, say i search
spray paint, it shows all the spray paint items, you click one named Black
Spray Paint. Then in the header it shows the name of the item (Black Spray
Paint)?

Alan

2004-04-30, 4:29 am

you can put PHP code between the <title> and </title> tags, because it's
executed before the page is sent.

just use good coding practice, and have a fall-back default value if your
code doesn't return a value or the sql query is empty.

Plan for errors.

If you are already doing this query in other parts of the page, you can use
that query in the title section perhaps.

> Ok, im going to try to build a PHP script that searches my DB, say i search
> spray paint, it shows all the spray paint items, you click one named Black
> Spray Paint. Then in the header it shows the name of the item (Black Spray
> Paint)?
>


thxmacromeida

2004-04-30, 5:31 pm

I havnt built the database and search yet. I am just planning the layout of my
code. I tried <?php (my code) ?> but it displays the actual code as text in the
header...I something like <?php $name = "What"; echo = "$name"; ?> I think that
code may be wrong, i am still trying to learn basics, but I copied and pasted
other code, so what i put did work in a cell.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews