<%@LANGUAGE="JAVASCRIPT"%> <% // *** Edit Operations: declare variables // set the form action variable var MM_editAction = Request.ServerVariables("SCRIPT_NAME"); if (Request.QueryString) { MM_editAction += "?" + Server.HTMLEncode(Request.QueryString); } // boolean to abort record edit var MM_abortEdit = false; // query string to execute var MM_editQuery = ""; %> <% // *** Insert Record: set variables if (String(Request("MM_insert")) == "Pakistan") { var MM_editConnection = MM_newexpak2007_STRING; var MM_editTable = "Feedback"; var MM_editRedirectUrl = "webfeedback.asp"; var MM_fieldsStr = "name|value|schoolname|value|email|value|speed|value|content|value|design|value|overall|value|webfeedback|value|expakfeedback|value"; var MM_columnsStr = "name|',none,''|schoolname|',none,''|email|',none,''|speed|none,none,NULL|content|none,none,NULL|design|none,none,NULL|overall|none,none,NULL|webfeedback|',none,''|expakfeedback|',none,''"; // create the MM_fields and MM_columns arrays var MM_fields = MM_fieldsStr.split("|"); var MM_columns = MM_columnsStr.split("|"); // set the form values for (var i=0; i+1 < MM_fields.length; i+=2) { MM_fields[i+1] = String(Request.Form(MM_fields[i])); } // append the query string to the redirect URL if (MM_editRedirectUrl && Request.QueryString && Request.QueryString.Count > 0) { MM_editRedirectUrl += ((MM_editRedirectUrl.indexOf('?') == -1)?"?":"&") + Request.QueryString; } } %> <% // *** Insert Record: construct a sql insert statement and execute it if (String(Request("MM_insert")) != "undefined") { // create the sql insert statement var MM_tableValues = "", MM_dbValues = ""; for (var i=0; i+1 < MM_fields.length; i+=2) { var formVal = MM_fields[i+1]; var MM_typesArray = MM_columns[i+1].split(","); var delim = (MM_typesArray[0] != "none") ? MM_typesArray[0] : ""; var altVal = (MM_typesArray[1] != "none") ? MM_typesArray[1] : ""; var emptyVal = (MM_typesArray[2] != "none") ? MM_typesArray[2] : ""; if (formVal == "" || formVal == "undefined") { formVal = emptyVal; } else { if (altVal != "") { formVal = altVal; } else if (delim == "'") { // escape quotes formVal = "'" + formVal.replace(/'/g,"''") + "'"; } else { formVal = delim + formVal + delim; } } MM_tableValues += ((i != 0) ? "," : "") + MM_columns[i]; MM_dbValues += ((i != 0) ? "," : "") + formVal; } MM_editQuery = "insert into " + MM_editTable + " (" + MM_tableValues + ") values (" + MM_dbValues + ")"; if (!MM_abortEdit) { // execute the insert var MM_editCmd = Server.CreateObject('ADODB.Command'); MM_editCmd.ActiveConnection = MM_editConnection; MM_editCmd.CommandText = MM_editQuery; MM_editCmd.Execute(); MM_editCmd.ActiveConnection.Close(); if (MM_editRedirectUrl) { Response.Redirect(MM_editRedirectUrl); } } } %> Experience Pakistan
 
 
 
 
 
 
 
   
   

 WIN A TRIP TO PAKISTAN!

BY CREATING A MULTI MEDIA PRESENTATION ABOUT AN ASPECT OF PAKISTAN
USING INFORMATION AND COMMUNICATION TECHNOLOGY (ICT)
 
FEEDBACK
 

Please use this form for feedback about the Experience Pakistan Competition or this website

 
YOUR DETAILS
 
   
Your Name:
*Required
   
School Name:
   
Your email address:
*Required
   
YOUR FEEDBACK
 
 
Please use the drop down menus below for your feedback (between 1 and 10. 1 = poor, 10 = excellent)
 
How do you rate this website for Speed?
 
How do you rate this website for Content?
 
How do you rate this website for Design?
 
How do you rate this website Overall?
 
Feedback about this website
   
Feedback about the Experience Pakistan Competition