problem about translatingPro php/html input code
Jun 11, 2012 4:04 pm by sasakerkez
Jun 11, 2012 4:04 pm by sasakerkez
Hi, Yana.
I am making bizcombook.com
I have probem about articles which contan php and html code: input radio buttons and drop lists, and similar.
When I activate translating in some non-default language (I use english as default) - I get bad page...
Do you have any advice about this?
Regards
Sasa
Re: problem about translatingPro php/html input code
Jun 12, 2012 2:15 pm by Yana
Jun 12, 2012 2:15 pm by Yana
Hi,
Could you please send me an example?
Re: problem about translatingPro php/html input code
Jun 12, 2012 2:46 pm by sasakerkez
Jun 12, 2012 2:46 pm by sasakerkez
Hi, Yana.
here is one example:
<input type="radio" name="myc01" value="1" <?php echo $myc01ch0; ?> > No
<input type="radio" name="myc01" value="2" <?php echo $myc01ch1; ?> > Yes
Notes:
- myc01 is name of variable
- $myc01ch0 and $myc01ch1 contains 'checked' or '' (nothing), depending on that what option fas to be checked (not always the same).
There is problem with list box, too, very similar, but let this be enough for now
Thank you very much, your very kind...
Regards...
Sasa
problem about translatingPro php/html input code - example
Jun 12, 2012 3:44 pm by sasakerkez
Jun 12, 2012 3:44 pm by sasakerkez
<?php
$myc01='1';
$myc01ch0='checked';
$myc01ch1='';
?>
<input type="radio" name="myc01" value="1" <?php echo $myc01ch0; ?> > No
<input type="radio" name="myc01" value="2" <?php echo $myc01ch1; ?> > Yes
Re: problem about translatingPro php/html input code
Jun 19, 2012 4:27 pm by Edvard
Jun 19, 2012 4:27 pm by Edvard
What do you see instead of
<input type="radio" name="myc01" value="2" checked> Yes
after translation? Can you post the link where we can see the issue?
Try to use self closing tag for input /> instead of > may be it will solve the issue.
SIMILAR TOPICS
Large numbers of crawl errors with double language code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |
Joomshaper Pagebuilder buttons Link edit problem | Jan 11, 2019 10:04 am | Replies: 1 | Post by: kumatest |
Problem with plugin | Dec 30, 2018 11:59 pm | Replies: 1 | Post by: Iyari |
Problem of translation in my website | Dec 8, 2018 12:15 pm | Replies: 1 | Post by: Ibrahim |
AJAX requests sent to wrong (with language code) URL | Sep 27, 2018 10:16 am | Replies: 3 | Post by: atriaforever |