Hi folks !
I could not understand this how to remember the values. I am using some java script but it sucks on Netscape so i wanna use some php now.
I am using the same form either wants to add some data into database or update the data then I call another file when user submits the data. what i m doing right now, if some data is missing , i call the same form function with the current values as parameters but this is complex thing as i will have to write a lotta code ..can u please explain a bit for me. I am stuck with js stuff my code looks like this :
function GenerateHTMLForm($reofferType,$formValues,$reqstudy_field,$actionScript, $submitLabel)
{
printf("<FORM onSubmit=\"return checkrequired(this)\" METHOD=post NAME = form1 ACTION=\"%s\"><PRE>\n", $actionScript);
printf("E-mail <INPUT TYPE=text SIZE=40 NAME=reqemail VALUE=\"%s\">
\n", ($formValues) ? $formValues["email"] : "");
printf("<INPUT TYPE=submit VALUE=\"%s\">", $submitLabel );
if ($submitLabel != "MODIFY")
printf("<INPUT TYPE=reset VALUE=\"Cancel\">");
printf("</PRE></FORM>" );
}