Jump to content


Photo

field_forwarder() help!! Need the user to be able to make edits


  • Please log in to reply
2 replies to this topic

#1 sono

sono
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 26 July 2006 - 05:07 AM

I am using field_forwarder in my multi-page form. It works beautifully but I have now been asked to alter the script so that the client is able to go back at any point and change info if needed, but the field variables get wiped out if you go back.

Any help is greatly appreciated as I dont want to start over with this script! I am also a newbie at php so may need some hand-holding  ;D

#2 Moon-Man.net

Moon-Man.net
  • Members
  • PipPipPip
  • Advanced Member
  • 84 posts

Posted 26 July 2006 - 05:32 AM

It may be insecure(Correct me if im wrong) But you could use php Sessions. Do some googleing on sessions, basically there a Global variable for each "Session" that is opened with the webserver.
they are valid untill the Explorer window gets closed.
Cheers,
NAthan

#3 sono

sono
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 26 July 2006 - 11:54 PM

Can anyone please elaborate on this. I have tried to do a search on sessions and have placed
<?php
session_start(); 
include ('../../field_forwarder.php');
?>

at the top of my pages. But if I use the 'back' button on the browser I get a post data error. I read that this is because my form uses 'POST' instead of 'GET' but field_forwarder() requires 'POST'

Any help would be very much appreciated.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users