joomla - Submit button from imported php file doesn't validate data -
i using joomla , wanted add new functionality joomla componnent. designed php file called roomdetails.php contains textboxes , submit button. submit button validates textboxes first , saves data database. saved php file in joomla root folder , whenever navigate localhost/mywebsitename/roomdetails.php , click on submit button, can see validates data. haven't tested if saves data. anyways, imported php file (roomdetails.php) joomla components php file , can see textboxes on components front end form.
<?php include 'roomdetails.php'; ?>
but when click submit button now, redirects me joomla administration index page. doesn't validate data. should do?
p.s wrote import statement below joomla component's tag.
</form> <?php include 'roomdetails.php'; ?>
when use import statement above joomla component's tag submit button doesn't anything, not re-direct.
<?php include 'roomdetails.php'; ?> </form>
Comments
Post a Comment