Welcome Guest, Not a member yet? Register   Sign In
sessions not enabled on go daddy server
#15

[eluser]labao[/eluser]
ok guys, out of desperation Im just going to show all the code I have. I know some of it might be broken and the logic might seem moronic at best but if you could just take a look and see if anything is really messed up.

my first page is a view page which looks like:

Code:
<?php
phpinfo();

echo '[removed][removed]';
echo '<div class="rentalbacking"><div class="contentformat"><br />Step one: Pick your location<br /><br />

&lt;body&gt;
&lt;FORM name="drop_list" action="'. base_url().'content/nextpage/nextstep" method="POST" &gt;
<p>Pick up Day<br />
<SELECT id="monthpick" name="monthpick">

</SELECT>
<SELECT id="daypick" name="daypick">

</SELECT>


<br /><br />

<p>Drop off Day<br />
<SELECT id="monthdrop" name="monthdrop">

</SELECT>
<SELECT id="daydrop" name="daydrop">

</SELECT><br />
<br />
<br />

';
$query="SELECT * FROM vehicle WHERE avail=''";

/* You can add order by clause to the sql statement if the names are to be displayed in alphabetical order */

$result = mysql_query ($query);

echo "<select name='vehicle' value=''>vehicle</option>";
// printing the list box select command

while($nt=mysql_fetch_array($result)){//Array or records stored in $nt
$vn=$nt['vehicle_name'];
$vd=$nt['vehicle_description'];
$vp=$nt['price'];
$v=$vn. ' - ' .$vd .'|' .$vp;

//$arr=array(
//"vn"=> $vn,
//"vd"=> $vd,
//"vp"=> $vp);

echo "<option value='$v'>$vn</option>";

/* Option values are added by looping through the array */

}

echo "</select>";// Closing of list box
$veh=$result[3];

echo"&lt;input type='hidden' name='description' value='$veh' /&gt;";

$photoquery="SELECT photo,photo_thumb,descrip FROM photo3";
$result = mysql_query ($photoquery) or die (mysql_error());
while($row = mysql_fetch_array($result)){

}
echo'<br /><br /><br />
<button type="submit">next step</button>
&lt;/FORM&gt;
</div>';
echo' <div class="ad1">More info</div>';
echo' <div class="ad2"><a href="'. base_url().'content/offer/offerone">More info</div>';



echo '</div>';
echo' <div class="ad3"></div>';

?&gt;

then the form is submitted into the controller:

Code:
function nextpage()
        {
        $pageID = $this->uri->segment(3);
    $monthpick =$this->input->post('monthpick');
    $monthdrop =$this->input->post('monthdrop');
    $daypick =$this->input->post('daypick');
    $daydrop =$this->input->post('daydrop');
    $vehicle=$this->input->post('vehicle');
    
    $vn = substr($vehicle, 0, strpos($vehicle, '|'));
    
    
    $anything = strlen($vn)+1;
    
    $vd=substr($vehicle, $anything, strpos($vehicle, '|'));
    $vd_len=strlen($vd);
    
    $offset=1;
    $vp = substr($vehicle, strpos($vehicle, '|', $offset)+1, strlen($vehicle));
    $vehicle=$vn;
    $vehicle_p=$vd;
    
    $vehicle


        $this->session->set_userdata('monthpick', $monthpick);
        $this->session->set_userdata('monthdrop', $monthdrop);
        $this->session->set_userdata('daypick', $daypick);
        $this->session->set_userdata('daydrop', $daydrop);
        $this->session->set_userdata('vehicle', $vehicle);
         $this->session->set_userdata('vehicle_p', $vehicle_p);

          $data = array(
         'pageID' => $pageID
         );    
        
        $this->load->view('template',$data);
    }

see next post for more code. also thanks for all the help guys really appreciate it... My professor couldn't even help me.


Messages In This Thread
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 04:33 AM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 10:37 AM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 11:10 AM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 11:20 AM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 11:25 AM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 11:34 AM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 12:51 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 01:31 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 01:40 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 01:57 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 02:23 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 02:41 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 02:47 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 02:47 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 07:56 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 08:03 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 08:04 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 08:07 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 08:11 PM
sessions not enabled on go daddy server - by El Forum - 04-09-2010, 08:14 PM
sessions not enabled on go daddy server - by El Forum - 04-15-2010, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB