Welcome Guest, Not a member yet? Register   Sign In
set_flashdata is not working ???
#1

[eluser]meer[/eluser]
when the form validation is true , i wanna set the message through flash data session

im using
$this->CI->session->set_flashdata(' Your file was successfully uploaded.....!!!!!');

it just showing the blank page

whats wrong i m doing .??
help me ......
#2

[eluser]Samus[/eluser]
[quote author="meer" date="1333706702"]when the form validation is true , i wanna set the message through flash data session

im using
$this->CI->session->set_flashdata(' Your file was successfully uploaded.....!!!!!');

it just showing the blank page

whats wrong i m doing .??
help me ......[/quote]
Give it a name.

Code:
$this->CI->session->set_flashdata('samus', 'is epic');

Then echo the flashdata

Code:
echo $this->session->flashdata('samus');
#3

[eluser]meer[/eluser]
ok
i have changed according to ur saying
now its showing "is epic"

bt it is nt wel styled as i m needing

,, i can show up this type of message by other ways
is their any other way to show the message in a stylish way ....
plzzzz

#4

[eluser]Samus[/eluser]
[quote author="meer" date="1333713971"]ok
i have changed according to ur saying
now its showing "is epic"

bt it is nt wel styled as i m needing

,, i can show up this type of message by other ways
is their any other way to show the message in a stylish way ....
plzzzz

[/quote]
wrap it in a div and use css to style.

Code:
<div id="flash">&lt;?php echo $this->session->flashdata('samus'); ?&gt;</div>
#5

[eluser]meer[/eluser]
it means , i have to create a view to show this message ????
#6

[eluser]Samus[/eluser]
[quote author="meer" date="1333714354"]it means , i have to create a view to show this message ????
[/quote]
where else do you expect to show html?

Surely not the controller!
#7

[eluser]meer[/eluser]
thanks samus,
thanks for your timeSmile




Theme © iAndrew 2016 - Forum software by © MyBB