Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ('C:\Formation\givexpert\sitestest\modal\Domain.php');
- include ('C:\Formation\givexpert\sitestest\modal\Modal.php');
- include ('C:\Formation\givexpert\sitestest\modal\ModalManager.php');
- $modal = new Modal();
- foreach ($_POST['url'] as $url)
- {
- $domain = new Domain();
- $domain->setUrl($url);
- $modal->addUrl($domain);
- }
- $modal->setText($_POST['text']);
- $modal->setTitle($_POST['title']);
- $db = new ModalManager();
- $db->insertMysqli($modal);
- echo "Modal inserΓ© dans la base";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement