2

I am submitting the form in codeigniter. In my input type text in want the value remain when error is occurred.

<input type="text" name="lastname" id="lnm" >

I tried using $_get['lastname'] which do in php. but it is not working.

1

1 Answer 1

2

Use set_value() it will solve your problem

<input type="text" name="lastname" id="lnm" value="<?php echo set_value('lastname', '0'); ?>" >
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.