Answer the question
In order to leave comments, you need to log in
What else needs to be written in the module when working with dle api?
Hello. I'm trying to implement my registration in a modal window using dle api. The module now looks like this:
<?php
include ('engine/api/api.class.php');
$email = $_POST['ajaxmail'];
$login = $_POST['ajaxname'];
$password = $_POST['ajaxpass'];
$dle_api->external_register( string $login, string $password, string $email, int 5);
?>
require_once ENGINE_DIR . '/modules/mod_reg.php';
Parse error: syntax error, unexpected '$login' (T_VARIABLE) in F:\openserver\OpenServer\domains\mak.eeva\engine\modules\mod_reg.php on line 6
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question