SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    Coventry , UK
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script Problem - resource id #

    I have a problem with a script which varies from server to server
    My script posts variables to an array from a form which works ok the first time you submit the data, however if you resubmit the data the arroay changes values of one whole field to "resource id #" and the variables all then carry the value "0"

    from this

    Array
    (
    [case] => Antec Aria + 7in1 Card Reader
    [casePrice] => 59.00
    )

    to this

    Array
    (
    [case] => Resource id #2
    [casePrice] => 59.00
    )

    As i say it only happens on some servers so does anyone know what causes it, is my code faulty, or is it a php quirk
    Please help as im pulling my hair out

    script can be round at
    http://steven-green.co.uk/script/productspost.php
    Regards
    Steve

  2. #2
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It'd be better if you post your code.
    ---------------------------
    Errors = Improved Programming.
    My Site

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    Coventry , UK
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <?
    error_reporting 
    (E_ALL); 
    # start the session 
    session_start(); 
    #connection 
    $dbc mysql_connect('osmium.webfusion.co.uk' 'mediacentre' 'mediacentre') or die (mysql_error()); 
    mysql_select_db ('mediacentredb'$dbc) or die (mysql_error()); 
    # if the form is submitted run this part 
    if(isset($_POST['submit'])) { 
    # register the session variable for case  
    $case_value explode("|"$_POST['case']);
    $_SESSION['case'] = $case_value[1]; 
    $_SESSION['casePrice'] = $case_value[0];

    # register the session variable for software 
    $software_value explode("|"$_POST['software']);
    $_SESSION['software'] = $software_value[1]; 
    $_SESSION['softwarePrice'] = $software_value[0];

    # register the session variable for motherboards 
    $motherboards_value explode("|"$_POST['motherboards']); 
    $_SESSION['motherboards'] = $motherboards_value[1]; 
    $_SESSION['motherboardsPrice'] = $motherboards_value[0];

    # register the session variable for tvtuner
    $tvtuner_value explode("|"$_POST['tvtuner']); 
    $_SESSION['tvtuner'] = $tvtuner_value[1]; 
    $_SESSION['tvtunerPrice'] = $tvtuner_value[0];

    # register the session variable for cpu 
    $cpu_value explode("|"$_POST['cpu']); 
    $_SESSION['cpu'] = $cpu_value[1]; 
    $_SESSION['cpuPrice'] = $cpu_value[0]; 

    # register the session variable for ram 
    $ram_value explode("|"$_POST['ram']); 
    $_SESSION['ram'] = $ram_value[1]; 
    $_SESSION['ramPrice'] = $ram_value[0]; 

    # register the session variable for graphics
    $graphics_value explode("|"$_POST['graphics']); 
    $_SESSION['graphics'] = $graphics_value[1]; 
    $_SESSION['graphicsPrice'] = $graphics_value[0];

    # register the session variable for dvd 
    $dvd_value explode("|"$_POST['dvd']); 
    $_SESSION['dvd'] = $dvd_value[1]; 
    $_SESSION['dvdPrice'] = $dvd_value[0];  

    # register the session variable for harddrive 
    $harddrive_value explode("|"$_POST['harddrive']); 
    $_SESSION['harddrive'] = $harddrive_value[1]; 
    $_SESSION['harddrivePrice'] = $harddrive_value[0];  

    # register the session variable for soundcard 
    $soundcards_value explode("|"$_POST['soundcards']);
    $_SESSION['soundcards'] = $soundcards_value[1]; 
    $_SESSION['soundcardsPrice'] = $soundcards_value[0]; 

    # register the session variable for keymouse 
    $keymouse_value explode("|"$_POST['keymouse']);
    $_SESSION['keymouse'] = $keymouse_value[1]; 
    $_SESSION['keymousePrice'] = $keymouse_value[0]; 

    # register the session variable for speakers 
    $speakers_value explode("|"$_POST['speakers']);
    $_SESSION['speakers'] = $speakers_value[1]; 
    $_SESSION['speakersPrice'] = $speakers_value[0]; 

    # register the session variable for monitor 
    $monitor_value explode("|"$_POST['monitor']);
    $_SESSION['monitor'] = $monitor_value[1]; 
    $_SESSION['monitorPrice'] = $monitor_value[0]; 

    # register the session variable for wifi
    $wifi_value explode("|"$_POST['wifi']);
    $_SESSION['wifi'] = $wifi_value[1]; 
    $_SESSION['wifiPrice'] = $wifi_value[0]; 
     




    ?> 
    <html> 
    <head> 
    <title>Untitled Document</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
    </head> 
    <body> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
        <td width="33%" bgcolor="#F0F0F0"><form name="selectors" action="<? $_SERVER['PHP_SELF']; ?>" method="POST"> 
            <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
            Case 
            <select name="case"> 
            <!-- set the first option on the select menu to blank or SESSION variable if it has been registered --> 
            <? if(isset($_SESSION['case']) && (isset($_SESSION['casePrice']))) { ?>
            <option value="<? echo $_SESSION['casePrice']; ?>|<? echo $_SESSION['case']; ?>">
            <? echo $_SESSION['case']; ?> - <? echo $_SESSION['casePrice']; ?></option>
            <? ?>
            <? $case mysql_query("select * from products where product_type='case' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_ca mysql_fetch_assoc($case); 
            do { 
    ?> 
            <option value="<? echo $rows_ca['price']; ?>|<? echo $rows_ca['product_name']; ?>"><? echo $rows_ca['product_name']; ?> 
            - <? echo $rows_ca['price']; ?></option> 
            <? } while($rows_camysql_fetch_assoc($case)); ?> 
            </select> 
            <br> 
            <br> 
            <br> 
            Software 
            <select name="software"> 
            <!-- set the first option on the select menu to blank or SESSION variable if it has been registered --> 
            <? if(isset($_SESSION['softwarePrice']) && (isset($_SESSION['software']))) { ?>          
            <option value="<? echo $_SESSION['softwarePrice']; ?>|<? echo $_SESSION['software']; ?>"><? echo $_SESSION['software']; ?> - <? echo $_SESSION['softwarePrice']; ?></option> 
            <? ?>
            <? $software mysql_query("select * from products where product_type='software' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_sw mysql_fetch_assoc($software); 
            do { 
    ?> 
            <option value="<? echo $rows_sw['price']; ?>|<? echo $rows_sw['product_name']; ?>"><? echo $rows_sw['product_name']; ?> 
            - <? echo $rows_sw['price']; ?></option> 
            <? } while($rows_swmysql_fetch_assoc($software)); ?> 
            </select> 
            <br> 
            <br> 
            <br> 
            Motherboard's 
            <select name="motherboards"> 
            <? if(isset($_SESSION['motherboardsPrice']) && (isset($_SESSION['motherboards']))) { ?>          
            <option value="<? echo $_SESSION['motherboardsPrice']; ?>|<? echo $_SESSION['motherboards']; ?>"><? echo $_SESSION['motherboards']; ?> - <? echo $_SESSION['motherboardsPrice']; ?></option> 
            <? ?>
            <? $motherboards mysql_query("select * from products where product_type='motherboards' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_mb mysql_fetch_assoc($motherboards); 
            do { 
    ?> 
            <option value="<? echo $rows_mb['price']; ?>|<? echo $rows_mb['product_name']; ?>"><? echo $rows_mb['product_name']; ?> 
            - <? echo $rows_mb['price']; ?></option> 
            <? } while($rows_mbmysql_fetch_assoc($motherboards)); ?> 
            </select>
             <br> 
            <br> 
            <br> 
           TV Tuners's 
            <select name="tvtuner"> 
            <? if(isset($_SESSION['tvtunerPrice']) && (isset($_SESSION['tvtuner']))) { ?>          
            <option value="<? echo $_SESSION['tvtunerPrice']; ?>|<? echo $_SESSION['tvtuner']; ?>"><? echo $_SESSION['tvtuner']; ?> - <? echo $_SESSION['tvtunerPrice']; ?></option> 
            <? ?>
            <? $tvtuner mysql_query("select * from products where product_type='tvtuner' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_tv mysql_fetch_assoc($tvtuner); 
            do { 
    ?> 
            <option value="<? echo $rows_tv['price']; ?>|<? echo $rows_tv['product_name']; ?>"><? echo $rows_tv['product_name']; ?> 
            - <? echo $rows_tv['price']; ?></option> 
            <? } while($rows_tvmysql_fetch_assoc($tvtuner)); ?> 
            </select>  
             <br> 
            <br> 
            <br> 
           CPU's 
            <select name="cpu"> 
            <? if(isset($_SESSION['cpuPrice']) && (isset($_SESSION['cpu']))) { ?>          
            <option value="<? echo $_SESSION['cpuPrice']; ?>|<? echo $_SESSION['cpu']; ?>"><? echo $_SESSION['cpu']; ?> - <? echo $_SESSION['cpuPrice']; ?></option> 
            <? ?>
            <? $cpu mysql_query("select * from products where product_type='cpu' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_cpu mysql_fetch_assoc($cpu); 
            do { 
    ?> 
            <option value="<? echo $rows_cpu['price']; ?>|<? echo $rows_cpu['product_name']; ?>"><? echo $rows_cpu['product_name']; ?> 
            - <? echo $rows_cpu['price']; ?></option> 
            <? } while($rows_cpumysql_fetch_assoc($cpu)); ?> 
            </select>
            <br> 
            <br> 
            <br> 
           RAM
            <select name="ram"> 
            <? if(isset($_SESSION['ramPrice']) && (isset($_SESSION['ram']))) { ?>          
            <option value="<? echo $_SESSION['ramPrice']; ?>|<? echo $_SESSION['ram']; ?>"><? echo $_SESSION['ram']; ?> - <? echo $_SESSION['ramPrice']; ?></option> 
            <? ?>
            <? $ram mysql_query("select * from products where product_type='ram' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_ram mysql_fetch_assoc($ram); 
            do { 
    ?> 
            <option value="<? echo $rows_ram['price']; ?>|<? echo $rows_ram['product_name']; ?>"><? echo $rows_ram['product_name']; ?> 
            - <? echo $rows_ram['price']; ?></option> 
            <? } while($rows_rammysql_fetch_assoc($ram)); ?> 
            </select> 
            <br> 
            <br> 
            <br> 
           Graphic's Card's
            <select name="graphics"> 
            <? if(isset($_SESSION['graphicsPrice']) && (isset($_SESSION['graphics']))) { ?>          
            <option value="<? echo $_SESSION['graphicsPrice']; ?>|<? echo $_SESSION['graphics']; ?>"><? echo $_SESSION['graphics']; ?> - <? echo $_SESSION['graphicsPrice']; ?></option> 
            <? ?>
            <? $graphics mysql_query("select * from products where product_type='graphics' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_gc mysql_fetch_assoc($graphics); 
            do { 
    ?> 
            <option value="<? echo $rows_gc['price']; ?>|<? echo $rows_gc['product_name']; ?>"><? echo $rows_gc['product_name']; ?> 
            - <? echo $rows_gc['price']; ?></option> 
            <? } while($rows_gcmysql_fetch_assoc($graphics)); ?> 
            </select> 
            <br> 
            <br> 
            <br> 
           DVD
            <select name="dvd"> 
            <? if(isset($_SESSION['dvdPrice']) && (isset($_SESSION['dvd']))) { ?>          
            <option value="<? echo $_SESSION['dvdPrice']; ?>|<? echo $_SESSION['dvd']; ?>"><? echo $_SESSION['dvd']; ?> - <? echo $_SESSION['dvdPrice']; ?></option> 
            <? ?>
            <? $dvd mysql_query("select * from products where product_type='dvd' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_dvd mysql_fetch_assoc($dvd); 
            do { 
    ?> 
            <option value="<? echo $rows_dvd['price']; ?>|<? echo $rows_dvd['product_name']; ?>"><? echo $rows_dvd['product_name']; ?> 
            - <? echo $rows_dvd['price']; ?></option> 
            <? } while($rows_dvdmysql_fetch_assoc($dvd)); ?> 
            </select>
            <br> 
            <br> 
            <br> 
           Hard Drive's
            <select name="harddrive"> 
            <? if(isset($_SESSION['harddrivePrice']) && (isset($_SESSION['harddrive']))) { ?>          
            <option value="<? echo $_SESSION['harddrivePrice']; ?>|<? echo $_SESSION['harddrive']; ?>"><? echo $_SESSION['harddrive']; ?> - <? echo $_SESSION['harddrivePrice']; ?></option> 
            <? ?>
            <? $harddrive mysql_query("select * from products where product_type='harddrive' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_hd mysql_fetch_assoc($harddrive); 
            do { 
    ?> 
            <option value="<? echo $rows_hd['price']; ?>|<? echo $rows_hd['product_name']; ?>"><? echo $rows_hd['product_name']; ?> 
            - <? echo $rows_hd['price']; ?></option> 
            <? } while($rows_hdmysql_fetch_assoc($harddrive)); ?> 
            </select>  
            <br> 
            <br> 
            <br> 
           Sound Card's
            <select name="soundcards"> 
            <? if(isset($_SESSION['soundcardsPrice']) && (isset($_SESSION['soundcards']))) { ?>          
            <option value="<? echo $_SESSION['soundcardsPrice']; ?>|<? echo $_SESSION['soundcards']; ?>"><? echo $_SESSION['soundcards']; ?> - <? echo $_SESSION['soundcardsPrice']; ?></option> 
            <? ?>
            <? $soundcards mysql_query("select * from products where product_type='soundcards' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_sc mysql_fetch_assoc($soundcards); 
            do { 
    ?> 
            <option value="<? echo $rows_sc['price']; ?>|<? echo $rows_sc['product_name']; ?>"><? echo $rows_sc['product_name']; ?> 
            - <? echo $rows_sc['price']; ?></option> 
            <? } while($rows_scmysql_fetch_assoc($soundcards)); ?> 
            </select>
            <br> 
            <br> 
            <br> 
           Keyboard's And Mice
            <select name="keymouse"> 
            <? if(isset($_SESSION['keymousePrice']) && (isset($_SESSION['keymouse']))) { ?>          
            <option value="<? echo $_SESSION['keymousePrice']; ?>|<? echo $_SESSION['keymouse']; ?>"><? echo $_SESSION['keymouse']; ?> - <? echo $_SESSION['keymousePrice']; ?></option> 
            <? ?>
            <? $keymouse mysql_query("select * from products where product_type='keymouse' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_kb mysql_fetch_assoc($keymouse); 
            do { 
    ?> 
            <option value="<? echo $rows_kb['price']; ?>|<? echo $rows_kb['product_name']; ?>"><? echo $rows_kb['product_name']; ?> 
            - <? echo $rows_kb['price']; ?></option> 
            <? } while($rows_kbmysql_fetch_assoc($keymouse)); ?> 
            </select> 
            <br> 
            <br> 
            <br> 
           Speaker's
            <select name="speakers"> 
            <? if(isset($_SESSION['speakersPrice']) && (isset($_SESSION['speakers']))) { ?>          
            <option value="<? echo $_SESSION['speakersPrice']; ?>|<? echo $_SESSION['speakers']; ?>"><? echo $_SESSION['speakers']; ?> - <? echo $_SESSION['speakersPrice']; ?></option> 
            <? ?>
            <? $speakers mysql_query("select * from products where product_type='speakers' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_sp mysql_fetch_assoc($speakers); 
            do { 
    ?> 
            <option value="<? echo $rows_sp['price']; ?>|<? echo $rows_sp['product_name']; ?>"><? echo $rows_sp['product_name']; ?> 
            - <? echo $rows_sp['price']; ?></option> 
            <? } while($rows_spmysql_fetch_assoc($speakers)); ?> 
            </select>    
            <br> 
            <br> 
            <br> 
           Monitor's
            <select name="monitor"> 
            <? if(isset($_SESSION['monitorPrice']) && (isset($_SESSION['monitor']))) { ?>          
            <option value="<? echo $_SESSION['monitorPrice']; ?>|<? echo $_SESSION['monitor']; ?>"><? echo $_SESSION['monitor']; ?> - <? echo $_SESSION['monitorPrice']; ?></option> 
            <? ?>
            <? $monitor mysql_query("select * from products where product_type='monitor' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_mo mysql_fetch_assoc($monitor); 
            do { 
    ?> 
            <option value="<? echo $rows_mo['price']; ?>|<? echo $rows_mo['product_name']; ?>"><? echo $rows_mo['product_name']; ?> 
            - <? echo $rows_mo['price']; ?></option> 
            <? } while($rows_momysql_fetch_assoc($monitor)); ?> 
            </select> 
            <br> 
            <br> 
            <br> 
           WI-Fi
            <select name="wifi"> 
            <? if(isset($_SESSION['wifiPrice']) && (isset($_SESSION['wifi']))) { ?>          
            <option value="<? echo $_SESSION['wifiPrice']; ?>|<? echo $_SESSION['wifi']; ?>"><? echo $_SESSION['wifi']; ?> - <? echo $_SESSION['wifiPrice']; ?></option> 
            <? ?>
            <? $wifi mysql_query("select * from products where product_type='wifi' order by product_id") or 
            die(
    mysql_error()); 
            
    $rows_wi mysql_fetch_assoc($wifi); 
            do { 
    ?> 
            <option value="<? echo $rows_wi['price']; ?>|<? echo $rows_wi['product_name']; ?>"><? echo $rows_wi['product_name']; ?> 
            - <? echo $rows_wi['price']; ?></option> 
            <? } while($rows_wimysql_fetch_assoc($wifi)); ?> 
            </select>                                                                                                                                                                                                               
            <br> 
            <input type="submit" name="submit" value="Recalculate"> 
            </font> 
    </form></td> 
        <td width="67%" align="center" valign="top"> 
          <? if(isset($_POST['submit'])) { ?> 
         <table width="500" border="0" cellspacing="2" cellpadding="0"> 
            <tr bgcolor="#F0F0F0"> 
              <td><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Product</font></strong></td> 
              <td><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Price</font></strong></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $case_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $case_value[0]; ?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $software_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $software_value[0]; ?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $motherboards_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $motherboards_value[0];?></font></td> 
           </tr> 
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $tvtuner_value[1]; ?></font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $tvtuner_value[0];?></font></td>
            </tr>
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $cpu_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $cpu_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $ram_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $ram_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $graphics_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $graphics_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $dvd_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $dvd_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $harddrive_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $harddrive_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $soundcards_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $soundcards_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $keymouse_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $keymouse_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $speakers_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $speakers_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $monitor_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $monitor_value[0];?></font></td> 
           </tr> 
            <tr> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $wifi_value[1]; ?></font></td> 
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? echo $wifi_value[0];?></font></td> 
            </tr> 
            <tr> 
              <td align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Total</strong></font></td> 
              <td bgcolor="#F0F0F0"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<? $total $_SESSION['casePrice'] +  $_SESSION['softwarePrice'] + $_SESSION['motherboardsPrice'] + $_SESSION['tvtunerPrice'] + $_SESSION['cpuPrice'] + $_SESSION['ramPrice'] + $_SESSION['graphicsPrice'] + $_SESSION['dvdPrice'
              + 
    $_SESSION['harddrivePrice'] + $_SESSION['soundcardsPrice'] + $_SESSION['keymousePrice'] + $_SESSION['speakersPrice'] + $_SESSION['monitorPrice'] + $_SESSION['wifiPrice']; echo $total?></font></td> 
            </tr> 
          </table> 
          <? ?> <form name="form1" method="POST" action="productmail.php">
            <input type="submit" name="Submit" value="Next >>>">
          </form>
          <pre><? print_r($_SESSION); ?></pre> 
        </td> 
      </tr> 
    </table> 

    </body> 
    </html>

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    Coventry , UK
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so does anyone know?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •