English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

On my first page I have a form. it will ask for 3 pcs, of info. on page 2 I set 3 sessions from the form on page 1. I try and use the sessions on page 3 and I keep getting this error

Notice: Undefined variable: _session in C:\Program Files\Abyss Web Server\htdocs\webcards\build3.php on line 17

I set the sessions like this on page 2.

$_session['sendto'] = $sendto;

Can any one tell me what I'm doing wrong

Thanks

Joe

2007-03-24 14:44:56 · 3 answers · asked by bigjoe11a 2 in Computers & Internet Programming & Design

I added the session_start(0 at the top and when I run the page it say sessions already started.

2007-03-25 02:17:29 · update #1

3 answers

on each page, use
session_start();

Set & get the values as $_SESSION['variable'];

2007-03-27 02:27:25 · answer #1 · answered by Atif Majid 3 · 0 0

Type
session_start();
at the first line of each script.

2007-03-25 09:17:29 · answer #2 · answered by Mukhtar 1 · 0 0

you have to put session_start(); at the top of every page you want to use sessions in.

2007-03-25 01:48:30 · answer #3 · answered by Muzz 2 · 0 0

fedest.com, questions and answers