R
R
Radiss2019-01-13 01:34:05
css
Radiss, 2019-01-13 01:34:05

Split header, banner - how to implement?

How to test a page, for example, with different headers or banners?
Is there such a mechanism as with the animation of the 'wow' plugin, for example? When filling out the form, the result of loading the session (with animation or not) is recorded in the database.

if (!isset($_SESSION["split"]) || !$_SESSION["split"]) {
    $values = array("wow", "no_wow");
    $rand = mt_rand(0, count($values) - 1);
      /*записываем в сессию случ.знач.кот.выпало от 0 до 1*/
    $_SESSION["split"] = $values[$rand];
     }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question