| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink)
|
|
Resident Cheese Expert
Join Date: Aug 2006
Location: South Wales
Posts: 512
|
HTML within PHP
I'm having a little trouble with this. It keeps throwing up an error, so I'm obviously doing something wrong. I'm simply trying to get an echo statement working with a class named "text". Here is the code: PHP Code:
Now I want all of the echo statement to be part of a class named "text". I've tried HTML Code:
But it keeps telling me that something is wrong. How should I be going about this? Cheers |
|
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Sep 2006
Posts: 275
|
firstly this bit: Code:
Has two different types of quotations. Change "<br/>" to '<br/>' but if your problem is the second bit then what error is it spitting out? Also you only need to escape the quotations if you are using double quotes for the echo statement. Remember you could also simply go for PHP Code:
of course echo should be working anyways |
|
|
|
#4 (permalink) | |
|
Resident Cheese Expert
Join Date: Aug 2006
Location: South Wales
Posts: 512
|
Quote:
Oh don't worry, I know this is a pathetic login system, but its for a Uni assignment, and its the one they showed us as an example to use, so it should suit my needs. I'll have a look at the above and see if I can make it work. Cheers |
|
|
![]() |
||
LinkBacks (?)
LinkBack to this Thread: http://www.designerstalk.com/forums/programming/25887-html-within-php.html
|
|||
| Posted By | For | Type | Date |
| HTML within PHP | This thread | Refback | 05-05-2007 14:37 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
![]() |