需要帮助从PHP生成HTML源 [英] need help with generating html source from the php

查看:96
本文介绍了需要帮助从PHP生成HTML源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我在面临的问题上需要你的帮助,

我的网站上有两个表格,提交时他们转到单身

页面(confirmation.php),这两个表格是英语和阿拉伯语

版本,我想做的是创建一个确认页面

负责发送表格价值。

我想要做的是,当提交阿拉伯语表格时

确认回声阿拉伯语成功记录和英语时一个英文

成功的笔记很容易做到,但我的问题是

<确认的头部包含重定向元标记

为主页,我希望根据语言界面生成元标记,我不知道如何使用

php生成HTML所以请如果有人可以帮助我,那将是非常感谢

赞美。

甚至可以指导我参加教程f或者这种情况。


提前感谢您的帮助


shror

解决方案

shror写道:


大家好,


我需要你的帮助面对的问题,

我的网站上有两个表格,提交时他们转到单页

页面(confirmation.php),这两个表格用于英语和阿拉伯语/>
版本和我想要做的是创建一个确认页面

负责发送表单值。

我想做什么就是当阿拉伯语表格被提交时

确认回声阿拉伯语成功的音符和英语时的英语

成功的音符是回应,这很容易做但我的问题是

<确认的headsection包含一个重定向元标记
主页的
我希望根据

生成元标记日e语言界面,我不知道如何使用

php生成HTML所以如果有人可以帮助我,这将是真的

赞赏。

甚至是指导我这个情况的教程。


提前感谢您的帮助


shror



<?php

echo"< b>此文字为粗体< / b> \ n" ;;

?>

-

==================

删除 ; X"来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


" shror" < sh ****** @ gmail.com写信息

新闻:11 ********************* @ 22g2000hsm。 googlegrou ps.com ...


大家好,


我在面临的问题上需要你的帮助,

我的网站上有两个表格,当提交时它们转到单页

页面(confirmation.php),这两个表格是英语和阿拉伯语

版本和我想要做的是创建一个确认页面

负责发送表单值。


我想要做的是,当提交阿拉伯语表格时

确认回声阿拉伯语成功记录和英语时一个英文

成功的笔记很容易做到,但我的问题是

<确认的头部包含重定向元标记

为主页,我希望根据语言界面生成元标记,我不知道如何使用

php生成HTML所以请如果有人可以帮助我,那将非常感激。

甚至可以指导我找到这种情况的教程。



这很难说 - 没有看到代码。

我认为这归结为一条评论 - "我不知道如何生成HTML。


您可以通过在代码中找到META标记为
的位置来解决您的问题生成然后使用条件(if-the-else)来生成相应的行。




Sanders Kaufman < bu *** @ kaufman.netwrote in message

news:82 ***************** @ newssvr11.news.prodigy.ne t。 ..


" shror" < sh ****** @ gmail.com写信息

新闻:11 ********************* @ 22g2000hsm。 googlegrou ps.com ...


>大家好,

我面临的问题需要你的帮助,
我在我的网站上有两个表格,提交时他们转到单页
页面(confirmation.php),这两个表格是英语和阿拉伯语
版本,我想要做的是创建一个单一的确认页面
负责发送表单值。


>我想要做的是,当提交阿拉伯语表格时
确认回声阿拉伯语成功的音符和英语时的英语
成功的笔记很容易做到,但我的问题是
<确认的头部包含主页的重定向元标记
我希望元标记是根据语言界面生成,我不知道如何使用
php生成HTML所以如果有人可以帮助我,这将真的很赞赏。
甚至是指导我这个情况的教程。



这很难说 - 没有看到代码。

我认为这归结为一条评论 - "我不知道如何生成

HTML。


您可以通过在代码中找到该位置来解决您的问题

生成META标记,然后使用条件

(if-the-else)生成相应的行。



一个有趣的问题发生在我身上。使用之前在此主题中描述的if语句

,当所需的

语言从右向左读取而不是从左到右时,回声会发生什么?只是简单地说

整个字符串都在引号中捕获,所以在屏幕上显示为

从右到左?如果是这样的话,那么自动换行会发生什么?

然后它不会在句子的开头而不是在

中间打破? (我只在英语网站上工作过)。


雪莉


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 <headsection 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

解决方案

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 <headsection 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.
js*******@attglobal.net
==================


"shror" <sh******@gmail.comwrote in message
news:11*********************@22g2000hsm.googlegrou ps.com...

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 <headsection 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.

That''s difficult to impossible to say - without seeing the code.
I think it boils down to one comment - "I don''t know how to generate HTML".

You could probably resolve your issue by finding the place in the code where
the META tag is generated and then to use a conditional (if-the-else) to
generate the appropriate line.



"Sanders Kaufman" <bu***@kaufman.netwrote in message
news:82*****************@newssvr11.news.prodigy.ne t...

"shror" <sh******@gmail.comwrote in message
news:11*********************@22g2000hsm.googlegrou ps.com...

>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 <headsection 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.


That''s difficult to impossible to say - without seeing the code.
I think it boils down to one comment - "I don''t know how to generate
HTML".

You could probably resolve your issue by finding the place in the code
where the META tag is generated and then to use a conditional
(if-the-else) to generate the appropriate line.

An interesting question occurred to me. Using the if statement outlined
previously in this thread, what happens with the echo when the desired
language reads from right to left and not left to right? Is it simply that
the entire string is captured in the quotes and so appears on the screen as
right to left? If that is the case, then what happens with word wrap?
Wouldn''t it then break at the beginning of the sentence rather than in the
middle? (I have only worked on English sites).

Shelly


这篇关于需要帮助从PHP生成HTML源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆