it's changing my text color after sending a form

#1
[eluser]blavaciko[/eluser]
I've got an booking application based on a form, a user fill it, and than will recieve the email.
I've got through validation, sending e-mail, etc.
Ive got a site like this

http://i54.tinypic.com/5v21w5.jpg

can fill the form, can send it, get the info about required ones, everything's ok.
but after succesfull sending of it, it will change the text color like this

http://i55.tinypic.com/dcrm14.jpg

Does anybody know why?

Here are my controller and view:

Controller
Code:
<?php

class Reservation extends Controller {


    function entry () {
  parent:: Controller();
  }
  
  
    function index()
    {
       $data['query'] = $this->db->get('menus');
       $page = $this->db->query('SELECT * FROM  pages WHERE id = 9');
      
       foreach($page->result() as $row):  
       $data['page'] = $row->content;
endforeach;

          $this->load->view('reservation', $data);
    }
    
        function send()
    {
       $data['query'] = $this->db->get('menus');
       $page = $this->db->query('SELECT * FROM  pages WHERE id = 9');
      
       foreach($page->result() as $row):  
       $data['page'] = $row->content;
endforeach;

            $this->form_validation->set_rules('name', 'Vaše meno', 'required');
            $this->form_validation->set_rules('email', 'E-mailová adresa', 'required|valid_email');
            $this->form_validation->set_rules('adress', 'Adresa', 'required');
            $this->form_validation->set_rules('phone', 'Vaše telefónne číslo', 'required');
            $this->form_validation->set_rules('tickets', 'Počet vstupeniek', 'required');
            $this->form_validation->set_rules('notice');
            $this->form_validation->set_rules('parking');
            $this->form_validation->run();
       if ($this->form_validation->run() == FALSE)
        {
            $this->load->view('reservation', $data);
        }
        
        
        else {
        $email = $this->input->post('email');
        $meno = $this->input->post('name');
        $adress = $this->input->post('adress');
        $tickets = $this->input->post('tickets');
        $phone = $this->input->post('phone');
        $parking = $this->input->post('parking');
        $notice = $this->input->post('notice');
        $mailcontent = 'Testing mail'.$notice.'ok?';        
    $this->load->library('email');
    $this->email->from($email, $meno);
    $this->email->to('[email protected]');  
    $this->email->subject('Rezervácia vstupenky: www.skautskyples.sk');
    $this->email->message($mailcontent);    
        
          If ($this->email->send()){
          $data['message'] ='Vaša rezervácia bola odoslaná.';}
              $this->load->view('reservation', $data);
     }
        
    

    }
}

?>

View
Code:
<?
include 'header.php';
?>
<p>V prípade Vášho záujmu o účasť si prosím rezervujte vstupenku čo najskor.<br />
Vstupenky sa predávajú pre jednotlivcov, páry si preto potrebujú rezervovať dve.<br />
Cena vstupenky je 25 €/os. a je v nej zahrnuté:
<ul>
<li>aperitív na prípitok</li>
<li>predjedlo</li>
<li>hlavné jedlo</li>
<li>dezert</li>
<li>káva / čaj</li>
<li>hudba</li>
<li>program</li>
<li>šatňa</li>
</ul>    
Parkovné na uzavretom, nestráženom, hotelovom parkovisku stojí 5€/auto/noc a platí sa vopred, spolu so vstupným.
          <br />
  <div id="validate">&lt;?php echo validation_errors(); ?&gt;</div>
        
<table>
&lt;?=form_open('reservation/send');?&gt;
     <tr><td>Vaše meno a priezvisko*: </td><td>&lt;input type="text" name="name" value="&lt;?php echo set_value('name'); ?&gt;"&gt;&lt;br /></td></tr>
     <tr><td>Vaša adresa*: </td><td>&lt;input type="text" name="adress" value="&lt;?php echo set_value('adress'); ?&gt;"&gt;&lt;br /></td></tr>
     <tr><td>Váš e-mail*: </td><td>&lt;input type="text" name="email" value="&lt;?php echo set_value('email'); ?&gt;"&gt;&lt;br /></td></tr>
     <tr><td>Vaše telefónne číslo*: </td><td>&lt;input type="text" name="phone" value="&lt;?php echo set_value('phone'); ?&gt;"&gt;&lt;br /></td></tr>
     <tr><td>Počet vstupeniek*: </td><td>&lt;input type="text" name="tickets" size="3" value="&lt;?php echo set_value('tickets'); ?&gt;"&gt;&lt;br /></td></tr>
     <tr><td>Počet áut na parkovisku: </td><td>&lt;input type="text" name="parking" size="3" value="&lt;?php echo set_value('parking'); ?&gt;"&gt;&lt;br /></td></tr>
      <tr><td>Priestor pre vaše poznámky:</td><td></td></tr>
      <tr><td></td><td>&lt;textarea rows="7" name="notice"&gt;&lt;?php echo set_value('notice'); ?&gt;&lt;/textarea&gt;&lt;/td></tr>
        <tr> <td>&lt;?=form_reset('','Vymazať formulár')?&gt;</td><td> &lt;input type="submit" value="Rezervovať vstupenky"&gt;&lt;/td></tr>
     &lt;/form&gt;
</table>
</p>
    &lt;? include 'footer.php';
?&gt;

#2
[eluser]keithics[/eluser]
use firebug and inspect the text inherited elements.

#3
[eluser]InsiteFX[/eluser]
I Also think you need to learn PHP and HTML by the looks of your code!

The opening PHP tag shoul be &lt;?php

I do not see any html declarations unless there in your header.

InsiteFX

#4
[eluser]teampoop[/eluser]
If your server has short tags enabled, &lt;?php is not required. Yes, it is part of CI's best practices, but shouldn't be used as a judgement on the persons knowledge of the language.

#5
[eluser]Dennis Rasmussen[/eluser]
[quote author="teampoop" date="1291246253"]If your server has short tags enabled, &lt;?php is not required. Yes, it is part of CI's best practices, but shouldn't be used as a judgement on the persons knowledge of the language.[/quote]

Why not?
Not every server supports short tags, so yeah you CAN actually judge people on that and many other things as well.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.