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
https://forums.phpfreaks.com/topic/249667-form-information-onto-another-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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