Jump to content

x-hd

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

x-hd's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hey, i've added a form page with textboxes and drop down functions for my website but i can't seem to get the information from the form onto another page do i use the setCookie and getCookie function? i have been taught this way but it doesn't seem to work for my website this is what i have now: FRONT PAGE (form application) <script type="text/javascript"> function setValues(aForm) { setCookie("condition",aForm.condition.value,365) setCookie("date",aForm.date.value,365) setCookie("treatment",aForm.treatment.value,365) setCookie("status",aForm.status.value,365) } PAGE 2 (form information published here) <script type="text/javascript"> var condition = getCookie("condition"); var date = getCookie("date"); var treatment = getCookie("treatment"); var status = getCookie("status"); document.write("Condition: " + condition) document.write("<p />") document.write("Date: " + date) document.write("<p />") document.write("Treatment: " + treatment) document.write("<p />") document.write("Status: " + status) our help would be much appreciated!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.