You are here: Re: need help with generating html source from the php « PHP Programming Language « IT news, forums, messages
Re: need help with generating html source from the php

Posted by shror on 09/27/07 07:03

On Sep 26, 10:30 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> shror wrote:
> > Hi every body,
>
> > I need your help in a problem am facing,
> > I have two forms on my website which when submitted they goto single
> > page (confirmation.php) and the two forms are for English and Arabic
> > versions and what I want to do is to create a single confirmation page
> > which is responsible to send the forms values.
> > What I want to do is that when the arabic form is submitted the
> > confirmation echos arabic succesful note and when english an english
> > successful note is echoed which is easy to do but my problem is that
> > the <head> section of the confirmation contains a redirection meta tag
> > for the home page and I want the meta tag to be generated according to
> > the language interface, and I dont know how to generate HTML using the
> > php so please if anybody could help me this will be really
> > appreciated.
> > or even to direct me to a tutorial for this situation.
>
> > Thanks for help in advance
>
> > shror
>
> <?php
> echo "<b>This text is bold</b>\n";
> ?>
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

I read about php on w3schools but the problem is that what I
understood is that the echo is used t echo something to the user to
read so that if I used

$language = 'Arabic';
if ($language == 'Arabic'){
echo "<html><head><title>Some HTML and Arabic stuff</title></head>";
} elseif ($language == 'English'){
echo "<html><head><title>Some HTML and English stuff</title></head>";
} else {
echo "You must choose a Language";
}

then I get on the page:
<html><head><title>Some HTML and English stuff</title></head>

anyway thanks for your help every body

shror

 

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

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