[PHP] Re: PHP question
On 13 July 2010 15:46, Joey Hendricks wrote: > Hi Mr. Quadling, > Thank you for the reply. I still don't understand how to get all the emails > into the function. Before I put in the function I had something like this- > for($i=0; $i<=9; $i++) > { > if(!empty($_GET[email.$i])) > { > mail($_GET[email.$i], $email_subject, $email_message, "From: ".$from); > } > } > But then I made this function- > function mail_message($data_array, $template_file, $deadline_str) > { > $email_message = file_get_contents($template_file); > $email_message = str_replace("#DEADLINE#", $deadline_str, $email_message); > $email_message = str_replace("#DATE#", date("F d, Y h:i a"), > $email_message); > $email_message = str_replace("#NAME#", $data_array['name'], $email_message); > //This to variable is where I get the error > $to=$mymail; > $from='j.hendrick...@comcast.net'; > $email_subject='Bubs Birthday'; > mail($to, $email_subject, $email_message, "From: ".$from); > } > And this is where I call the function- > if(!empty($_GET[email.$i])) > { > mail_message($_GET[email.$i], "email_template.txt", $deadline_str); > } > Thank you very very much for your help. > Joey. Try ... $to = ''; foreach(range(1,9) as $i) { $to .= (!!$to ? ',', : '') . $_GET["email{$i}"]; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Php question from Newsgroup
""Boyd, Todd M."" wrote in message news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu... Mike -- I've "bottom posted" my reply, as is the convention for this list (and most others). Scroll down. From: Mike Peloso [mailto:mpel...@princeton.edu] Sent: Thursday, December 18, 2008 9:56 AM To: Boyd, Todd M. Subject: Php question from Newsgroup Todd, I have attached a few jpgs to show the problems I am having (With both of my recent posts) Any questions you can call me. The first one shows the value of the php file I am trying to parse.( I cant set any of those directives,) I can't set php.ini per dir The second shows what your REGEX looks like as its being sent to: preg_match_all($regex, $test2, $result, PREG_PATTERN_ORDER); As you can see there is a whole lot of escaping going on here. Thanks Mike Heres all the code: ,/()%...@!',''); //fix special chars in name $_POST[$fname.'_fname'] = strtr($_POST[$fname.'_fname'],"'","_"); $fileHandle = fopen($_FILES[$fname]['tmp_name'], "r"); $_POST[$fname] =stripslashes(fread($fileHandle, $_POST[$fname.'_size'])); $test=$_POST[$fname]; $test3=stripslashes($test); //$regex='/function [a-z]* *([$a-zA-Z]*)/'; //$regex='/function [a-z]* *(?$[a-z]*)?/'; $regex = '/function\s+[-_a-z0-9]+\s*\((\s*$\?[-_a-z0-9]+\s*,?)*\s*\)/i'; $functions=do_reg($regex,$test); } function do_reg($regex,$test) { $test2=preg_quote($test); preg_match_all($regex, $test2, $result, PREG_PATTERN_ORDER); return $result = $result[0]; } ?> Mike, You are using preg_quote(). This will add slashes to every "special" RegEx character in your pattern (i.e., parentheses and dollar signs, etc.). Try performing your RegEx search without using preg_quote() and let me know if it does any better. Also--try to keep your replies on the PHP List, as the information in them can be used by others on their own projects. // Todd Were getting there The only fuction i get is one without any parameters. I'll play with it, but if you see an error in your regex let me know. Thanks Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Php question from Newsgroup
Mike -- I've "bottom posted" my reply, as is the convention for this list (and most others). Scroll down. From: Mike Peloso [mailto:mpel...@princeton.edu] Sent: Thursday, December 18, 2008 9:56 AM To: Boyd, Todd M. Subject: Php question from Newsgroup Todd, I have attached a few jpgs to show the problems I am having (With both of my recent posts) Any questions you can call me. The first one shows the value of the php file I am trying to parse.( I cant set any of those directives,) I can't set php.ini per dir The second shows what your REGEX looks like as its being sent to: preg_match_all($regex, $test2, $result, PREG_PATTERN_ORDER); As you can see there is a whole lot of escaping going on here. Thanks Mike Heres all the code: ,/()%...@!',''); //fix special chars in name $_POST[$fname.'_fname'] = strtr($_POST[$fname.'_fname'],"'","_"); $fileHandle = fopen($_FILES[$fname]['tmp_name'], "r"); $_POST[$fname] =stripslashes(fread($fileHandle, $_POST[$fname.'_size'])); $test=$_POST[$fname]; $test3=stripslashes($test); //$regex='/function [a-z]* *([$a-zA-Z]*)/'; //$regex='/function [a-z]* *(?$[a-z]*)?/'; $regex = '/function\s+[-_a-z0-9]+\s*\((\s*$\?[-_a-z0-9]+\s*,?)*\s*\)/i'; $functions=do_reg($regex,$test); } function do_reg($regex,$test) { $test2=preg_quote($test); preg_match_all($regex, $test2, $result, PREG_PATTERN_ORDER); return $result = $result[0]; } ?> Mike, You are using preg_quote(). This will add slashes to every "special" RegEx character in your pattern (i.e., parentheses and dollar signs, etc.). Try performing your RegEx search without using preg_quote() and let me know if it does any better. Also--try to keep your replies on the PHP List, as the information in them can be used by others on their own projects. // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php question
Torsten Roehr wrote: "Michael Crane" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] hello, I have a webpage which includes a frame containing a table made of 24 tds which in turn contain little images. When the mouse clicks on a little image the appropriate larger image is loaded into an adjacent frame. Can somebody point me in the direction to do this in php without frames please ? I've been looking most of the day but I can't see it. regards mick Hi Mick, you have to append the file name of the bigger version to your links as a parameter: big picture 1 big picture 2 big picture 3 Exchange name_of_the_big_file1/2/3 with the file names of the big image versions. Then at the point where you want to show the big image include this code: $image = basename($_GET['image']); echo ''; } ?> Of course you may have to alter the src attribute if your pictures are not in the same directory. Hope this helps, regards. Torsten Roehr This looks hopeful thanks. Something like this is in the ( don't know what bird that is .?) o'reilly book but I couldn't get it to return anything. what you write is more informational. I will try. many thanks. otherwise I think I can "include" the table in every page that is linked to. which is what I think people do. It's hard to guess when the source is invisible :) Just started with php. cheers mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php question
"Michael Crane" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hello, > I have a webpage which includes a frame containing a table made of 24 > tds which in turn contain little images. When the mouse clicks on a > little image the appropriate larger image is loaded into an adjacent frame. > Can somebody point me in the direction to do this in php without frames > please ? > > I've been looking most of the day but I can't see it. > > regards > > mick Hi Mick, you have to append the file name of the bigger version to your links as a parameter: big picture 1 big picture 2 big picture 3 Exchange name_of_the_big_file1/2/3 with the file names of the big image versions. Then at the point where you want to show the big image include this code: '; } ?> Of course you may have to alter the src attribute if your pictures are not in the same directory. Hope this helps, regards. Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php question - query string
You've got it right... look at the man page for parse_str() for more info on the QUERY_STRING stuff as well as the register_globals configuration option. Looking at the script below, there is nothing special about setting $addjoke to 1. It's just important that it is set to *something* (because of the isset($addjoke) call. You could set it to whatever you want, but setting it to 1 is commonly done to indicate "trueness" or "it's on". You could set it to "yes" if you wanted and the script would work the same. Hope this helps. -philip On Thu, 30 Jan 2003, Anthony Ritter wrote: > The following script is from Kevin Yank's book on page 59-60. (Sitepoint) > > I'd like to get some clarification about the line: (almost next to last line > in the script) > > ... > echo("Add a Joke!"); > > > > He has a link called "Add a Joke!". > > When the user clicks on the link, the same page loads - with the form this > time - and the query string passes the value -1 - to the variable $addjoke. > > Am I on the right track? > > If so, why does 1 - as opposed to 2 or something else - have to be the > name/value pair if the user is adding another joke? > > Thank you. > TR > .. > > > > The Internet Joke Database > > >if (isset($addjoke)): // If the user wants to add a joke > ?> > > > Type your joke here: > > > > >else: // Default page display > > // Connect to the database server > $dbcnx = @mysql_connect("localhost", "root", "mypasswd"); > if (!$dbcnx) { > echo( "Unable to connect to the " . > "database server at this time." ); > exit(); > } > > // Select the jokes database > if (! @mysql_select_db("jokes") ) { > echo( "Unable to locate the joke " . > "database at this time." ); > exit(); > } > > // If a joke has been submitted, > // add it to the database. > if ($submitjoke == "SUBMIT") { > $sql = "INSERT INTO Jokes SET > JokeText='$joketext', > JokeDate=CURDATE()"; > if (@mysql_query($sql)) { > echo("Your joke has been added."); > } else { > echo("Error adding submitted joke: " . > mysql_error() . ""); > } > } > > echo(" Here are all the jokes in our database: "); > > // Request the text of all the jokes > $result = @mysql_query("SELECT JokeText FROM Jokes"); > if (!$result) { > echo("Error performing query: " . mysql_error() . ""); > exit(); > } > > // Display the text of each joke in a paragraph > while ( $row = mysql_fetch_array($result) ) { > echo("" . $row["JokeText"] . ""); > } > > // When clicked, this link will load this page > // with the joke submission form displayed. > echo("Add a Joke!"); > > endif; > > ?> > > > > -- > > > > > > -- > 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] Re: PHP question
Have a look at suexec HTH gamin "Tom Ray" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Are PHP script supposed to run as the user or as the web server? > Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP > scripts run as apache, not as the user. I'm wonder if I can run the > scripts as the user and how do I fix this? > > Any help would be great! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Fw: [PHP] Re:[PHP]question
Hi Meltem, the second one was a better description of your problem. Attached is the most convenient approach can come up with for this problem. It is not optimized, but should be easy to understand. Timo '.$f_a_err.' '.$f_b_err.' '.$f_c_err.' '); }; if(@$fields_complete) { echo ("all fields filled"); }; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re:[PHP]question
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; > > > > ?> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > } > > > > 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 > > > > > anythingand > > > > > > 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 > > > > > > > > > > > > > > > &g
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; > > ?> > > > > > > > > > > > > > > > > > } > > 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 > > > anythingand > > > > 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
Re: Fw: [PHP] Re:[PHP]question
Meltem, You're much better off to use JavaScript to perform the form validation. This way, when the user clicks on the Submit button, JavaScript can make sure that values are filled in, or that they are within range, and can then pop up a message advising them of any errors, and that they can't continue until the info is corrected. This saves the hassle of you having to create a system that will send details to/from various pages, and the user doesn't have to fill in the entire form all over again, as their values stay on the page. I use this site quite often for javascript code: http://javascript.internet.com/ Peter At 04:53 PM 9/11/2002 +0300, you wrote: >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 >anythingand > > 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 - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions [EMAIL PROTECTED] http://www.fourthrealm.com Tel: 519-739-1652 - - - - - - - - - - - - - - - - - - - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re:[PHP]question
right... 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 > anythingand > > 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
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 anythingand > 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] 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 anythingand 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