简体   繁体   中英

Joomla module php error?

I've got a situation with a Joomla 3 module. It looks like it's working as it's supposed to work, but the content is not exactly what I need.

In this code something is wrong:

<input type="submit" class="button" value="<?php echo JText::_('Submit'); ?>" class="submit" />

I also tried to use a few PHP code testers, but 3 out of 4 say there's no problem. One of them said to me there's an unexpected "<" in this line. Anyway, that's one thing that's false (correct me if I'm wrong).

Anyway, this code should be showing in the content button "Submit", but it shows no value, only the module name.

Any ideas, guys?

Please add name="MyButton" attribute in input, and assign simply value="Submit" and than test it.

and yes keep only one class attribute :)

hope it will work :)

<input type="submit" name="MyButton" class="button" value="Submit" />

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM