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 10 1187
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
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
"Sanders Kaufman" <bu***@kaufman.netwrote in message
>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?
I tend to buffer my echos until a block is fully composed.
I think there's a bunch of "ob****" stuff in PHP for that, but I just use a
variable.
Thus, the answer to your question is to do it like this: -
if($sLanguage == "english"){
-
$sMessage = "Good God, almighty!";
-
} else {
-
$sMessage = "Allah akbar!";
-
}
-
echo $sMessage;
-
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?
I don't understand the question.
You had me up until word-wrap.
When you echo a string, as shown - it spits the result out to std_out as
composed.
There's no word-wrap unless the client is doing something like that.
Does that help answer the question?
Wouldn't it then break at the beginning of the sentence rather than in the
middle? (I have only worked on English sites).
Huh? Not in any context I can think of.
Never worked with anything but English but I do know that text
direction can be controlled with CSS e.g.
p {
direction:rtl;
text-align:right
}
"macca" <pt*******@googlemail.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
Never worked with anything but English but I do know that text
direction can be controlled with CSS e.g.
p {
direction:rtl;
text-align:right
}
That's so error-prone, it should be considered a bug, rather than a feature.
Browsers in languages that stream right-to-left already perform that
function.
So, if you use it the way you did, it'll switch the text back around the
wrong way.
Where that *is* useful is in proprietary HTML extensions, like
"<mymenu></mymenu>" which are not defined in the HTML/XHMTL spec.
"Sanders Kaufman" <bu***@kaufman.netwrote in message
news:o1****************@newssvr21.news.prodigy.net ...
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
>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?
I don't understand the question.
You had me up until word-wrap.
When you echo a string, as shown - it spits the result out to std_out as
composed.
There's no word-wrap unless the client is doing something like that.
Does that help answer the question?
As one example, if you have a table of fixed column width and allow
multi-line (a not uncommon situaton), then the text will wrap. What happens
if that text is supposed to be right to left? Treating it all as a one left
to right string will cause it to wrap incorrectly. Does that help you
understand the question?
>
>Wouldn't it then break at the beginning of the sentence rather than in the middle? (I have only worked on English sites).
Huh? Not in any context I can think of.
"ggg fff eee ddd ccc bbb aaa" will wrap as, for example,
"ggg fff eee ddd"
"ccc bbb aaa"
because it assumes left to right. In a right to left language, aaa is the
the first word, bbb the second, etc. We would want it to wrap as:
"ddd ccc bbb aaa"
" ggg fff eee"
That is what I meant. How does one make that kind of thing happen. A
simple echo will wrap incorrectly.
Shelly
>
"macca" <pt*******@googlemail.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
Never worked with anything but English but I do know that text
direction can be controlled with CSS e.g.
p {
direction:rtl;
text-align:right
}
Now THAT answers my question!
Shelly
"Sanders Kaufman" <bu***@kaufman.netwrote in message
news:aK***************@newssvr14.news.prodigy.net. ..
"macca" <pt*******@googlemail.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
>Never worked with anything but English but I do know that text direction can be controlled with CSS e.g.
p { direction:rtl;
text-align:right }
That's so error-prone, it should be considered a bug, rather than a
feature.
Browsers in languages that stream right-to-left already perform that
function.
.....and that also answers my question!
Shelly
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
"Sanders Kaufman" <bu***@kaufman.netwrote in message
>>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?
I don't understand the question. You had me up until word-wrap. When you echo a string, as shown - it spits the result out to std_out as composed. There's no word-wrap unless the client is doing something like that. Does that help answer the question?
As one example, if you have a table of fixed column width and allow
multi-line (a not uncommon situaton), then the text will wrap. What
happens if that text is supposed to be right to left? Treating it all as
a one left to right string will cause it to wrap incorrectly. Does that
help you understand the question?
Yeah, I think so.
But for that - you're best answer can be found in the PHP docs at PHP.net -
if you're using PHP's wordwrap thingy.
I don't use it much.
because it assumes left to right. In a right to left language, aaa is the
the first word, bbb the second, etc. We would want it to wrap as:
"ddd ccc bbb aaa"
" ggg fff eee"
That is what I meant. How does one make that kind of thing happen. A
simple echo will wrap incorrectly.
You'll probably have to create your own function for that.
I don't think PHP is *that* internationalized yet. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mary Ellen Curtin |
last post by:
arrgh. Because I can't afford a new system right now, I'm running a
hamster-powered Pentium 166, 64 M RAM, Win 95. I've been using
Dreamweaver3, but I've now reached my limit. *rends DW3 with teeth...
|
by: avnrao |
last post by:
I am looking for a best tool to convert html source to PDF.
I am generating html from an xslt and want to convert it to pdf..i have
evaluated ABDpdf and ActivePdf components. but not sure if these...
|
by: Keith Smith |
last post by:
I know this is a little off topic but I hope it is still acceptable to this
forum. Please read this carefully. I am not looking for a quick answer - I
am hoping to find someone who has been in my...
|
by: Alan Silver |
last post by:
Hello,
I am a complete and utter newbie at ASP.NET, so please forgive any
stupid questions ;-)
I am just trying to get my head around the whole web forms business, but
have run into a...
|
by: nicholas |
last post by:
Hello,
Got a kind of e-commerce site.
There are products with product options, such as color, size, etc
All are defined a table:
tbl_products: the table with the products.
tbl_options: the...
|
by: webrod |
last post by:
Hi,
I have some php pages with a lot of HTML code.
I am looking for a HTML validator tool (like TIDY).
TIDY is not good enough with PHP tags (it removes a lot of php code).
Do you have any...
|
by: sorobor |
last post by:
dear sir ..
i am using cakephp freamwork ..By the way i m begener in php and javascript ..
My probs r bellow
I made a javascript calender ..there is a close button ..when i press close button...
|
by: MMcCarthy |
last post by:
This problem was proposed to me but not really my area of expertise so I thought I would open it up to the forum to see if anyone had any bright ideas.
The problem is generating Microsoft Word...
|
by: cnixuser |
last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |