hello frndz...
.
.
i what to knw i their any method to hold the values of form after refreshing the page or gettin back again on same page..!!!
.
.
for eg i create a form.. username frstname lastname...after submiting the form if username exits then it go back to registerin form but tht should contain alteast correct value like frstname,lastname..!!!
.
.
i hope u understand wht i want to say... waiting for positive reply..!!!
.
.
thnx in advance..!![:)]
nish123
0
Junior Poster in Training
Recommended Answers
Jump to PostStore it in a session or cookie.
Session example:
<?php session_start(); foreach($_POST as $key => $value) { $_SESSION['post_vars'][$key] = $value; } ?>
Very basic example, by no means complete.
You can then access the values using
$_SESSION['post_vars']['field name']
All 3 Replies
Will Gresham
81
Master Poster
almostbob
866
Retired: passive income ROCKS
nish123
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.