PHP

Reply

Join Date: Feb 2009
Posts: 58
Reputation: rohnni is an unknown quantity at this point 
Solved Threads: 0
rohnni rohnni is offline Offline
Junior Poster in Training

Re: PHP

 
0
  #51
Mar 1st, 2009
that above code doesnot working,,,

tell me any simple method so that it will display Your details , your business title ....
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 58
Reputation: rohnni is an unknown quantity at this point 
Solved Threads: 0
rohnni rohnni is offline Offline
Junior Poster in Training

Re: PHP

 
0
  #52
Mar 1st, 2009
any idea? how to breakup the page?
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,484
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 136
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: PHP

 
0
  #53
Mar 1st, 2009
Originally Posted by rohnni View Post
that above code doesnot working,,,

tell me any simple method so that it will display Your details , your business title ....
Well that probably means that a- you haven't placed the foreach loop in my previous post in all 5 files or b- you did not use the html field names inside the session array or c- you did not put session_start() at the beginning of all 5 files.

If you want a simpler method then first you may want to remove the foreach loop mentioned in my previous post from all your pages. Then place session_start(); at the top of all of your pages if it does not allready exist. After that place the following code on the next line below session start on page 2:
  1. foreach($_POST AS $keyzz => $valzz) {
  2. $_SESSION['aa1'][$keyzz]=$valzz;
  3. }
Then line below session start on page 3:
  1. foreach($_POST AS $keyzz => $valzz) {
  2. $_SESSION['aa2'][$keyzz]=$valzz;
  3. }
Then line below session start on page 4:
  1. foreach($_POST AS $keyzz => $valzz) {
  2. $_SESSION['aa3'][$keyzz]=$valzz;
  3. }
Then line below session start on page 5
  1. foreach($_POST AS $keyzz => $valzz) {
  2. $_SESSION['aa4'][$keyzz]=$valzz;
  3. }
In case you are wondering, page 1 is the first form page and page 2 is second page which has had $_POST submitted to it untill page 5 which display or whatever the results while receiving the posts. Now for the message, the following will do the trick:
  1. $body="title1 \n";
  2. foreach($_SESSION['aa1'] AS $keyaa => $valaa) {
  3. $body.="$keyaa : $valueaa \n";
  4. }
  5. unset($keyaa);
  6. unset($valaa);
  7. $body="title2 \n";
  8. foreach($_SESSION['aa2'] AS $keyaa => $valaa) {
  9. $body.="$keyaa : $valueaa \n";
  10. }
  11. unset($keyaa);
  12. unset($valaa);
  13. $body="title3 \n";
  14. foreach($_SESSION['aa3'] AS $keyaa => $valaa) {
  15. $body.="$keyaa : $valueaa \n";
  16. }
  17. unset($keyaa);
  18. unset($valaa);
  19. $body="title4 \n";
  20. foreach($_SESSION['aa4'] AS $keyaa => $valaa) {
  21. $body.="$keyaa : $valueaa \n";
  22. }
Try not to bump 10 year old threads as it can be really annoying.
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*`
My favourite PC. - MacGyver Fan
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 58
Reputation: rohnni is an unknown quantity at this point 
Solved Threads: 0
rohnni rohnni is offline Offline
Junior Poster in Training

Re: PHP

 
0
  #54
Mar 1st, 2009
Thanks... :-))
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC