Jump to content

Recommended Posts

update.php

<?php

session_start();

$_SESSION['owner']=$_POST['ownert'];

$owner=$_SESSION['owner'];

 

[/i]

 

SUBMIT button goes to updateprocess.php

 

?>

 

[u]updateprocess.php[/u]

<?php

header('Location: http://www.website.com/update.php');

 

[i][code][/i]

 

?>

 

i read online and tried putting session_start(); on updateprocess.php but that doesn't seem to work either.

Edited by loren646

$_POST['ownert'];

 

ownert??

 

Edit: and actually you said when you submit it goes straight to the other page. So your code to put the variables IN the session won't ever work.

Edited by Jessica

$_POST['ownert'];

 

ownert??

 

Edit: and actually you said when you submit it goes straight to the other page. So your code to put the variables IN the session won't ever work.

 

sorry, i couldn't edit. owner"T" is just a typo here and not in the actual program.

 

This code is the the 2nd page. the first page is an html with a submit button.

 

$_SESSION['owner']=$_POST['owner'];

 

now that we have $_SESSION['owner'] i can echo it and it displays. Now i have to process information on this page (update.php). and it processes it on the next page (updateprocess.php) and redirects back to update.php. Now update.php does NOT have $_SESSION['owner'].

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.