Jump to content

form information onto another page?!


x-hd

Recommended Posts

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!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.