Jump to content

tomkure

New Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

tomkure's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi everybody, I have recently change to a new server, and have some problem with a script for uploading files on my new server. Script is an old which I have updated with new php command, <? not accepted in new server. Scripts shall upload picture to folder in server and write information to database From form script I am saving my upload <input type="hidden" name="Mode" value="EditMapProperty" /> <input type="hidden" name="Old_Map" value="<?php echo $Property->Get_Map();?>" /> In my php script I do elseif($Mode=="EditMapProperty"): $Map_name = $HTTP_POST_FILES['Map']['name']; $Property=new Property($PropertyID); $ReferenceNo=$Property->Get_ReferenceNo(); if($Map!=""): $DeleteMap=$Dir_MapProperty_Admin."".$Property->Get_Map(); @unlink($DeleteMap); endif; if($Map_name==""): $Map=$Old_Map; else: copy($HTTP_POST_FILES['Map']['tmp_name'], $Dir_MapProperty_Admin."".$ReferenceNo."-".$Map_name); $Map=$ReferenceNo."-".$Map_name; endif; $Property->EditMap($Map); //Update database information echo "<meta http-equiv=\"refresh\" content=\"0;URL=$Redirect2?p=property_details&PropertyID=$PropertyID\">"; Can any help if there are any PHP problem in this coding. Kind Regards Tom
  2. Hi, Being a programmer in ERP systems for a decade, PHP is confusing(at least for me) I guess it is a simple task, but not for me...so if you can help I will be greatful 1. I have 3 different pages(1.php, 2.php, 3.php) that go to same detail.php page with dynamic content. 2. If I click 'back' or use javascript.goback(-1) I get an resend window which I want to avoid 3. Therefore I want to record which page I am coming from to direct where to go from my back buttom 4. In my opion I need to use a global variable that can been read in detail.php. I have tried sessions which for me dont work. If you have suggestion how to solve this I will appriciate very much Kind Regards Tom
  3. Hi, Never use sessions to stores values, but don't looks difficult, anyway.... Need to store which page I am comming from as a number On page 1 session_start(); $pageID=4; $_session['var99'] = $pageID ; echo $_session['var99']; ***Give value 4*** On page 2 session_start(); echo $_session['var99']; *** Gives me nothing *** if ($_session["var99"] <> '' ){ $back = $_session["var99"]; } Is there something wrong in my code Kind Regards Tom
×
×
  • 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.