You are here: displaying html code using the echo command? « PHP Programming Language « IT news, forums, messages
displaying html code using the echo command?

Posted by Doug (dtism) on 04/03/07 11:22

Hello **newbie alert** <-- that's me btw, but you might have guessed
that by my topic title.

I have an html page that submits a name and email address by a form to
a page called preview.php

I'd like to do some basic validation on the credentials subbitted via
the form, and if they pass then send the credentials via email and
display the rest of the page (which will have links to download some
promotional tunes from my friends record label)

If the validation fails I'd like to display an alternative version of
the page telling the user to go back and fill in the form properly.

Can I do this by simply enclosing some html code in an echo statement?

for example

echo "<div id="success">Thanks, here are the links you are looking
for....</div>";

I'm guessing I might have to escape the extra quotation marks, because
it wouldn't parse the line when I just tried it.

Anyway.. Am I barking up the wrong tree completely?

Thanks in advance

Doug.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация