Hello everyone,
Does anyone know why after using the insert record function that Dreamweaver provides for ASP JavaScript page, then you CANNOT pass the value in the text field inside the form to another page??
Please help.
Vic.
3 2579 acoder 16,027
Recognized Expert Moderator MVP
I'm not familiar with this functionality, but if you post some code then it might help to debug your problem.
- <%@LANGUAGE="JAVASCRIPT"%>
-
<!--#include file="Connections/VConn.asp" -->
-
<%
-
// *** 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 = "";
-
%>
- <%
-
// *** Redirect if username exists
-
var MM_flag="MM_insert";
-
if (String(Request(MM_flag)) != "undefined") {
-
var MM_dupKeyRedirect="MemberRegistrationPage.asp";
-
var MM_rsKeyConnection=MM_VConn_STRING;
-
var MM_dupKeyUsernameValue = String(Request.Form("user_name"));
-
var MM_dupKeySQL = "SELECT USER_NAME FROM s2565019.MEMBER WHERE USER_NAME='" + MM_dupKeyUsernameValue.replace(/'/g, "''") + "'"
-
var MM_adodbRecordset = "ADODB.Recordset";
-
var MM_rsKey = Server.CreateObject(MM_adodbRecordset);
-
MM_rsKey.ActiveConnection = MM_rsKeyConnection;
-
MM_rsKey.Source = MM_dupKeySQL;
-
MM_rsKey.CursorType=0;
-
MM_rsKey.CursorLocation=2;
-
MM_rsKey.LockType=3;
-
MM_rsKey.Open();
-
if (!MM_rsKey.EOF || !MM_rsKey.BOF) {
-
// the username was found - can not add the requested username
-
var MM_qsChar = "?";
-
if (MM_dupKeyRedirect.indexOf("?") >= 0) MM_qsChar = "&";
-
MM_dupKeyRedirect = MM_dupKeyRedirect + MM_qsChar + "requsername=" + MM_dupKeyUsernameValue;
-
Response.Redirect(MM_dupKeyRedirect);
-
}
-
MM_rsKey.Close();
-
}
-
%>
-
<%
-
// *** Insert Record: set variables
-
if (String(Request("MM_insert")) == "form") {
-
var MM_editConnection = MM_VConn_STRING;
-
var MM_editTable = "s2565019.MEMBER";
-
var MM_editRedirectUrl = "MemberRegistrationPage1.asp";
-
var MM_fieldsStr = "user_name|value|pwd|value|u_type|value|f_name|value|l_name|value|dob|value|email|value|address|value|join_date|value|activate|value";
-
var MM_columnsStr = "USER_NAME|',none,''|PWD|',none,''|U_TYPE|',none,''|F_NAME|',none,''|L_NAME|',none,''|DOB|',none,NULL|EMAIL|',none,''|ADDRESS|',none,''|JOIN_DATE|',none,NULL|ACTIVATE|',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);
-
}
-
}
-
}
-
%>
- <%
-
var m_Rs = Server.CreateObject("ADODB.Recordset");
-
m_Rs.ActiveConnection = MM_VConn_STRING;
-
m_Rs.Source = "SELECT * FROM s2565019.MEMBER";
-
m_Rs.CursorType = 0;
-
m_Rs.CursorLocation = 2;
-
m_Rs.LockType = 1;
-
m_Rs.Open();
-
var m_Rs_numRows = 0;
-
%>
- <head>
-
<script language="javascript" src="MemberRegistrationValidation.js">
-
</script>
-
<title>Member Registration Page</title>
-
</head>
-
<body onLoad="setTimeout('CurrDate(),CurrMonth(),CurrYear()',100)">
-
<form ACTION="<%=MM_editAction%>" METHOD="POST" name="form" onSubmit="return fieldsCheck()">
-
<table align="center">
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
User Name
-
</th>
-
<td>
-
<input name="user_name" type="text" title="Enter Your User Name." maxlength="16">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Password
-
</th>
-
<td>
-
<input name="pwd" type="password" title="Enter 8~16 Characters" maxlength="16">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Re-type Password
-
</th>
-
<td>
-
<input name="re_pwd" type="password" title="Enter 8~16 Characters" maxlength="16">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Select User Type
-
</th>
-
<td align="left">
-
<input name="u_type" type="radio" checked title="Limited Functions." align="left" value="Basic">Basic User<br>
-
<input name="u_type" type="radio" title="Advanced Functions." align="left" value="Advanced">Advanced User<br>
-
<input name="u_type" type="radio" title="Ultimate Functions." align="left" value="Premier">Premier User
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
First Name
-
</th>
-
<td>
-
<input name="f_name" type="text" title="Enter Your First Name." maxlength="30">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Last Name
-
</th>
-
<td>
-
<input name="l_name" type="text" title="Enter Your Last Name." maxlength="15">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Date of Birth
-
</th>
-
<td>
-
<input name="dob" type="hidden">
-
<script language="javascript">
-
document.write("Date ");
-
-
var dt = new Date();
-
document.write("<input name=\"date\" id=\"date\" type=\"hidden\">");
-
document.write("<select name=\"the_date\" id=\"the_date\">");
-
for(dd = 1; dd < 32; dd++){
-
document.write("<option selected value=" + dd + ">" + dd + "</option>");
-
}
-
document.write("</select>");
-
function CurrDate(){
-
var list = document.getElementById("the_date");
-
list.selectedIndex = 0;
-
list.onchange = function(){
-
document.getElementById("date").value = list.options[list.selectedIndex].value;
-
document.form.dob.value = document.getElementById("date").value + "/" + document.getElementById("month").value + "/" + document.getElementById("year").value;
-
}
-
}
-
document.getElementById("date").value = 1;
-
-
document.write(" Month ");
-
-
var mnames = new Array("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC");
-
var mth = new Date();
-
document.write("<input name=\"month\" id=\"month\" type=\"hidden\">");
-
document.write("<select name=\"the_month\" id=\"the_month\">");
-
for(mm = 1; mm < 13; mm++){
-
document.write("<option selected value=" + mm + ">" + mnames[mm-1] + "</option>");
-
}
-
document.write("</select>");
-
function CurrMonth(){
-
var list = document.getElementById("the_month");
-
list.selectedIndex = mth.getMonth();
-
list.onchange = function(){
-
document.getElementById("month").value = list.options[list.selectedIndex].text;
-
document.form.dob.value = document.getElementById("date").value + "/" + document.getElementById("month").value + "/" + document.getElementById("year").value;
-
}
-
}
-
document.getElementById("month").value = mnames[mth.getMonth()];
-
-
document.write(" Year ");
-
-
var yyyy = new Date();
-
document.write("<input name=\"year\" id=\"year\" type=\"hidden\">");
-
document.write("<select name=\"the_year\" id=\"the_year\">");
-
for(yy = 1950; yy < 2030; yy++){
-
document.write("<option selected value=" + yy + ">" + yy + "</option>");
-
}
-
document.write("</select>");
-
function CurrYear(){
-
var list = document.getElementById("the_year");
-
list.selectedIndex = 57;
-
list.onchange = function(){
-
document.getElementById("year").value = list.options[list.selectedIndex].value;
-
document.form.dob.value = document.getElementById("date").value + "/" + document.getElementById("month").value + "/" + document.getElementById("year").value;
-
}
-
}
-
document.getElementById("year").value = yyyy.getFullYear();
-
document.form.dob.value = document.getElementById("date").value + "/" + document.getElementById("month").value + "/" + document.getElementById("year").value;
-
</script>
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Email
-
</th>
-
<td>
-
<input name="email" type="text" title="Enter Your Email." maxlength="40">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Full Address
-
</th>
-
<td>
-
<input name="address" type="text" title="Enter Your Full Address." maxlength="70">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"></th>
-
<td>
-
<input name="join_date" type="hidden">
-
<script type="text/javascript">
-
var months=new Array(13);
-
months[1] ="January";
-
months[2] = "February";
-
months[3] = "March";
-
months[4] = "April";
-
months[5] = "May";
-
months[6] = "June";
-
months[7] = "July";
-
months[8] = "August";
-
months[9] = "September";
-
months[10]= "October";
-
months[11]= "November";
-
months[12]= "December";
-
var time=new Date();
-
var lmonth=months[time.getMonth() + 1];
-
var date = time.getDate();
-
var year = time.getFullYear()
-
document.form.join_date.value = date + "/" + lmonth + "/" + year;
-
</script>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<input name="activate" type="hidden">
-
</td>
-
</tr>
-
<tr align="left">
-
<th></th>
-
<td align="left">
-
<input name="Submit" type="submit" value="Submit">
-
<input name="Reset" type="reset" value="Reset All">
-
</td>
-
</tr>
-
</table>
-
<input type="hidden" name="MM_insert" value="form">
-
</form>
-
<form action="MemberRegistrationPage1.asp" method="link">
-
<input name="uname" type="text" title="Enter Your User Name." maxlength="16">
-
<script language="JavaScript" type="text/javascript">
-
document.getElementById("user_name").onkeyup = function(){
-
document.getElementById("uname").value = this.value;
-
}
-
setTimeout('document.getElementById("user_name").value = "";document.getElementById("uname").value = ""',200);
-
</script>
-
</form>
-
</body>
Input name UNAME should be pass to the other web site which it doesn't. - <%@LANGUAGE="JAVASCRIPT" CODEPAGE="950"%>
-
<!--#include file="Connections/VConn.asp" -->
-
<%
-
var Rs = Server.CreateObject("ADODB.Recordset");
-
Rs.ActiveConnection = MM_VConn_STRING;
-
Rs.Source = "SELECT * FROM s2565019.PAYMENT_DETAIL ORDER BY PD_ID DESC";
-
Rs.CursorType = 0;
-
Rs.CursorLocation = 2;
-
Rs.LockType = 1;
-
Rs.Open();
-
var Rs_numRows = 0;
-
%>
-
<%
-
// *** 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")) == "form") {
-
var MM_editConnection = MM_VConn_STRING;
-
var MM_editTable = "s2565019.PAYMENT_DETAIL";
-
var MM_editRedirectUrl = "Test.asp";
-
var MM_fieldsStr = "pd_id|value|card_type|value|card_no|value|card_scrt_no|value|exp_date|value|card_holder|value";
-
var MM_columnsStr = "pd_id|none,none,NULL|CARD_TYPE|',none,''|CARD_NO|',none,''|CARD_SCRT_NO|none,none,NULL|EXP_DATE|none,none,NULL|CARD_HOLDER|',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);
-
}
-
}
-
}
-
%>
-
<html>
-
<head>
-
<script language="javascript" src="MemberRegistrationValidation.js">
-
</script>
-
<title>Member Registration Page</title>
-
<meta http-equiv="Content-Type" content="text/html; charset=big5">
-
</head>
-
<body onLoad="setTimeout('selCurrMonth(),selCurrYear()',100)">
-
<form name="form1">
-
<input name="user_name" type="hidden">
-
<script language="javascript">
-
var locate = window.location
-
document.form1.user_name.value = locate
-
-
var text = document.form1.user_name.value
-
-
function delineate(str)
-
{
-
theleft = str.indexOf("=") + 1;
-
theright = str.lastIndexOf("&");
-
return(str.substring(theleft, theright));
-
}
-
-
function delineate2(str)
-
{
-
point = str.lastIndexOf("=");
-
return(str.substring(point+1,str.length));
-
}
-
</script>
-
</form>
-
<form onSubmit="return fieldsCheck()" action="<%=MM_editAction%>" METHOD="POST" name="form">
-
<table align="center">
-
<tr>
-
<td>
-
<input name="id" type="hidden" value="<%=Rs.Fields("pd_id")%>">
-
<script>
-
var num = parseInt(document.form.id.value);
-
var sum = 1;
-
sum += num;
-
document.write("<input name=\"pd_id\" type=\"text\">");
-
document.form.pd_id.value = sum;
-
</script>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<input name="uname" type="text">
-
<script language="javascript">
-
var Data = delineate2(text)
-
document.form.uname.value = Data
-
</script>
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Credit Card Type
-
</th>
-
<td>
-
<select name="card_type" style = "width:3.9cm">
-
<optgroup label="Credit Card Type">
-
<option selected="selected">Visa</option>
-
<option>MasterCard</option>
-
<option>AmericanExpress</option>
-
</optgroup>
-
</select>
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Card Number
-
</th>
-
<td>
-
<input name="card_no" type="text" maxlength="16" onKeyUp="javascript:checkNumber(form.card_no);">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Security Number
-
</th>
-
<td>
-
<input name="card_scrt_no" type="password" maxlength="4" onKeyUp="javascript:checkNumber(form.card_scrt_no);">
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Expiry Date
-
</th>
-
<td>
-
<input name="exp_date" type="hidden">
-
<span>Month </span>
-
<script language="javascript">
-
//var mnames = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
-
var mth = new Date();
-
//document.write("<p>Current option text: <input name=\"curtxt\" id=\"curtxt\" size=\"10\"></p>");
-
document.write("<input name=\"month\" id=\"month\" type=\"hidden\">");
-
//document.write("<p>Current option selectedIndex: <input name=\"curselind\" id=\"curselind\" size=\"10\"></p>");
-
document.write("<select name=\"the_month\" id=\"the_month\">");
-
for(mm = 1; mm < 13; mm++){
-
document.write("<option selected value=" + mm + ">" + mm + "</option>");
-
}
-
document.write("</select>");
-
function selCurrMonth(){
-
var list = document.getElementById("the_month");
-
list.selectedIndex = mth.getMonth();
-
list.onchange = function(){
-
//document.getElementById("curtxt").value = list.options[list.selectedIndex].text;
-
document.getElementById("month").value = list.options[list.selectedIndex].value;
-
document.form.exp_date.value = document.getElementById("month").value + "" + document.getElementById("year").value;
-
//document.getElementById("curselind").value = list.selectedIndex+1;
-
//window.alert("Selected month is " + list.options[list.selectedIndex].text + " and its option value is " + list.options[list.selectedIndex].value);
-
}
-
}
-
document.getElementById("month").value = mth.getMonth()+1;
-
-
document.write(" Year ");
-
-
var yyyy = new Date();
-
document.write("<input name=\"year\" id=\"year\" type=\"hidden\">");
-
document.write("<select name=\"the_year\" id=\"the_year\">");
-
for(yy = yyyy.getFullYear(); yy < 2029; yy++){
-
document.write("<option selected value=" + yy + ">" + yy + "</option>");
-
}
-
document.write("</select>");
-
function selCurrYear(){
-
var list = document.getElementById("the_year");
-
list.selectedIndex = 0;
-
list.onchange = function(){
-
document.getElementById("year").value = list.options[list.selectedIndex].value;
-
document.form.exp_date.value = document.getElementById("month").value + "" + document.getElementById("year").value;
-
}
-
}
-
document.getElementById("year").value = yyyy.getFullYear();
-
document.form.exp_date.value = document.getElementById("month").value + "" + document.getElementById("year").value;
-
</script>
-
</td>
-
</tr>
-
<tr>
-
<th align="left"><font color="#FF0000">*</font>
-
Card Holder
-
</th>
-
<td>
-
<input name="card_holder" type="text" maxlength="50">
-
</td>
-
</tr>
-
<tr align="left">
-
<th></th>
-
<td align="left">
-
<input name="Submit" type="submit" value="Submit">
-
<input name="Reset" type="reset" value="Reset All">
-
</td>
-
</tr>
-
</table>
-
<input type="hidden" name="MM_insert" value="form">
-
</form>
-
</body>
-
</html>
-
<%
-
Rs.Close();
-
%>
acoder 16,027
Recognized Expert Moderator MVP
Phew, that was a lot of work putting your code in tags.
I can't be bothered going through all that. Can you pinpoint where you think the error is and just post that instead.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Don |
last post by:
I have a need to simulate the submission of an html-like <form> on the server, and was wondering if
anyone knew of something out there that could do that.
Thanks for your help,
Don
|
by: John Davis |
last post by:
I want to know what's the differences between
Request.Form("Field Name") and
Request.QueryString("Field Name")
OR they function exactly the same, which is to return the value of the
field??
Thanks,
John
|
by: Pavils Jurjans |
last post by:
Hello,
I have bumped upon this problem: I do some client-side form processing
with JavaScript, and for this I loop over all the forms in the
document. In order to identify them, I read their "name" property
(which sources from "name" HTML attribue). The problem is, that if the
form contains form control named "name", it overwrites the form name
property. In fact, I'm quite surprised that it's so easy to spoil any
of the form object...
|
by: Pete Wilson |
last post by:
Hi folks --
The page at
http://www.pwilson.net/submit-demo.html
will not validate. The validator at http://validator.w3.org tells me I
can't have an input inside a form.
Would some kind soul please tell me what I'm doing wrong?
|
by: Dan |
last post by:
I am trying to use
Request.Form("__EVENTTARGET") to get the name of the control that caused a post back. It keeps returning "".
I am not really sure why, this happens for all of my controls that invoke are invoking a post back.
I've never used this type of method before, but I need to get the name of the control doing the postback in the Form Load event, and cannot wait until the event of the target control that runs due to the...
| |
by: Parasyke |
last post by:
Please help.... I have a form that I successfully add records to that I
want to copy and turn into a form for editing records from that same
table (It is imperitive that it be done this way, rather than just one
form) ... I need in the textbox for the new edit form to have the user
type in a item# then the form populates. I'm having tremedous trouble
with the logic of this.
Thanks!!! Dav
|
by: bolinc |
last post by:
Can someone tell me why this isn't working?
<Script language="JavaScript"><!--//
var bJavaEnabled = Boolean(clientInformation.javaEnabled());
if (bJavaEnabled){
document.write('<form method="post" name="hiddenform" id="hiddenform" action="Specials.asp">');
document.write('<input type="hidden" id="enabled" name="enabled" value="1">');
document.write('</form>');
}
//-->
|
by: KiwiGenie |
last post by:
Hi..I am trying to make a search form. I am fairly new to access and could well be looking at it completely wrong. I have an unbound form with textboxes in the header for entering different search criteria.
I have a subform for displaying the results, which is bound to Query4. SQL for Query4 (taken from sql view in query):
SELECT tblRecipes.RecipeName, tblRecipes.FoodCategory, Sum(Query3.IngredCost) AS SumOfIngredCost, Query3.RecipeID
FROM...
|
by: guessvic |
last post by:
Hello everyone,
Does anyone know why after using the insert record function that Dreamweaver provides for ASP JavaScript page, then you CANNOT pass the value in the text field inside the form to another page??
Please help.
Vic.
|
by: eBob.com |
last post by:
How does a "sub-form", i.e. one invoked by another form, determine anything
about the form which brought it into existence, i.e., I suppose,
instantiated it? I wanted to so something like this ...
MsgBox("called by " & Owner.Name)
.... but that throws a null reference exception. Parent.Name and
ParentForm.Name also throw null reference exceptions. Form1.Name works -
but that's not very flexible.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |