Meltem, Your english is very good but you have lost me :) could you explain more slowly....
John ----- Original Message ----- From: "Meltem Demirkus" <[EMAIL PROTECTED]> To: "John Wards" <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 3:32 PM Subject: Re: [PHP] Re:[PHP]question > then it is what I want ..:)) thanks alot..but one last thing I did not > understand which part calling the whole form page (the other paragraphs > written on the ame page beside the form ) .. > meltem > ----- Original Message ----- > From: "John Wards" <[EMAIL PROTECTED]> > To: "Meltem Demirkus" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, September 11, 2002 5:26 PM > Subject: Re: [PHP] Re:[PHP]question > > > > oh missed something out... > > function your_form_html($var_1=null, $var_2=null){ > > global $message > > > > echo $message; > > ?>etc... > > > > This will print out your form again with the variables the user submited > > plus the message. > > > > Is this what you need? > > John > > > > > I think it only prints out the message .. am I wrong? > > > > > > ----- Original Message ----- > > > From: "John Wards" <[EMAIL PROTECTED]> > > > To: "Meltem Demirkus" <[EMAIL PROTECTED]>; > > > <[EMAIL PROTECTED]> > > > Sent: Wednesday, September 11, 2002 5:09 PM > > > Subject: Re: [PHP] Re:[PHP]question > > > > > > > > > > right....... > > > > <? > > > > function your_form_html($var_1=null, $var_2=null){ > > > > global $message; > > > > ?> > > > > <form name="form1" method="post" action=""> > > > > <p><input type="text" name="var_1" value="<?=$var_1?>"> > > > > <br> > > > > <input type="text" name="var_2" value="<?=$var_2?>"> > > > > </p> > > > > <input type="submit" name="Submit" value="Submit"> > > > > </form> > > > > <? > > > > } > > > > if($Submit =="Submit){ > > > > if($var_1 != "whatever" OR $var_2 != "this") { > > > > $message = "You did wrong..."; > > > > your_form_html($var_1, $var_2); > > > > } > > > > else{ > > > > echo "whoo hoo done"; > > > > } > > > > }else{ > > > > your_form_html(); > > > > } > > > > > > > > Is that what you are after? > > > > > > > > John > > > > ----- Original Message ----- > > > > From: "Meltem Demirkus" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Wednesday, September 11, 2002 2:53 PM > > > > Subject: Fw: [PHP] Re:[PHP]question > > > > > > > > > > > > > I think because of my bad english I made you misunderstand..I ment > > this > > > : > > > > > for example when a person miss an input to fill on the from and > > then > > > > > press the submit button I want him to be back to the same form page > > with > > > a > > > > > special message that I entered (something like :you left ..... place > > > > > empty).But I dont want to copy the same form page accoring to the > > > possible > > > > > mistakes .. I want to learn if there is an easier way to do this... > > > > > thanks to everyone.. > > > > > > > > > > meltem > > > > > ----- Original Message ----- > > > > > From: "Meltem Demirkus" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Wednesday, September 11, 2002 4:40 PM > > > > > Subject: [PHP] Re:[PHP]question > > > > > > > > > > > > > > > > > > > > > > Thanks ...But I know this way about carrying data from one page to > > > > > another.. > > > > > > I want this message to be seen on the page without my doing > > > > > anything....and > > > > > > I cant do that?.. > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "John Wards" <[EMAIL PROTECTED]> > > > > > > To: "Meltem Demirkus" <[EMAIL PROTECTED]>; > > > > > > <[EMAIL PROTECTED]> > > > > > > Sent: Wednesday, September 11, 2002 4:36 PM > > > > > > Subject: Re: [PHP] question > > > > > > > > > > > > > > > > > > > pass the message as a variable > > > > > > > > > > > > > > header:location.php?message=$message > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > From: "Meltem Demirkus" <[EMAIL PROTECTED]> > > > > > > > To: <[EMAIL PROTECTED]> > > > > > > > Sent: Wednesday, September 11, 2002 2:31 PM > > > > > > > Subject: [PHP] question > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > I am working on a process which turn to the previous page when > > the > > > > > user > > > > > > > > enter something wrong in the form on a page .But I also want > to > > > warn > > > > > the > > > > > > > > user with an error message on this page ...I know using heder > : > > > > > location > > > > > > > but > > > > > > > > I couldn't add the message ... > > > > > > > > can anybody help me ? How can I add this message to the page.. > > > > > > > > thanks alot > > > > > > > > > > > > > > > > metos > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > PHP General Mailing List (http://www.php.net/) > > > > > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > PHP General Mailing List (http://www.php.net/) > > > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > PHP General Mailing List (http://www.php.net/) > > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php