Jump to content


Photo

OnReload - Keep Form Data? How?


  • Please log in to reply
2 replies to this topic

#1 chrispols

chrispols
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 04 September 2006 - 07:12 AM

Hi everyone,

Here's my issue. I have a form with normal data entry which inserts into a database. Quite simple stuff. On one of the pieces of the form, I have an "Onchange" event. Basically this is related to 3 drop down boxes which fetches information from my Dbase.

The problem is that the drop down boxes, onchanging, reloads the page with page.php?cat=2&cat3=4 type of thing. When I click on the box and it reloads the page, all the information I have already filled out is taken out.

Is there a way I can reload the page with keeping the information I have already filled out to stay?

Thanks a lot,
Chris

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 04 September 2006 - 08:46 AM

HAve you considered ajax?

That way you don't have to reload the whole page - you can just manipulate the html you need to.
follow me on twitter @PHPsycho

#3 chrispols

chrispols
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 04 September 2006 - 11:43 AM

Hi, for something as little as this, I dont' want to go and learn a whole new thing. it's 1 page I need to do this.
Hmm.. must thing harder then.
Thanks,




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users