On my homepage, I have two boxes where new users will input their name in the first box, and their email in the second box (image 1).
Once they register, they will be taken to the registration page (or comreg), where their information will automatically be transferred to the form so they do not have to enter it again (image 2).
I have tried a few mixes but none seem to work in joomla. This is what I have tried so far:
First page
<?php
session_start();
if(isset($_POST['input1'])
{
$input1 = $_POST['input1'];
$input2 = $_POST['input2'];
$_SESSION['sessionInput1'] = $input1;
$_SESSION['sessionInput2'] = $input2;
}
?>
Second page
<?php
session_start();
//retrieve session value
if(!is_null($_SESSION['sessionInput1'] && !is_null($_SESSION'sessionInput2'])
{
$output1 = $_SESSION['sessionInput1'];
$output2 = $_SESSION'sessionInput2'];
}
?>
Thanks in advance
$_POST
or$_SESSION
. Instead, have a read through the Joomla documentation. Specifically JInput and JSession