Originally posted by mikeycorn
But how do I get it to go straight into the .php without having to click submit?
Isnt it possible to use $_POST without form?
I do not know, but ..
maybe with header location redirect?
<?php
$data = 'something';
$_POST['data'] = $data;
header ( 'location:nlinereservations.php' );
?>
A form is usually to submit data and send it somewhere else
Same thing you can do by using $_SESSION
<?php
// data to be taken somewhere
session_start();
$_SESSION['data'] = 'something';
header( 'location:next_page.php' );
?>
and next_page.php receives data
<?php
session_start();
$input = $_SESSION['data'];
echo $input;
?>
Session data will remain, until the user closes down his browser (session ends)
You have to use
session_start();
in beginning of every page that wants to read these variables with data from session
/halojoy