473,408 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Help with variables

I am new to asp and have tried a few things and cannot get it to
work. I thought this code
<input type="hidden" name="x_cust_id" value="<%= x_email %>">
would work for making the x_cust_id value equal what was put in the
x_email field - but that doesnt work - any idea what Im doing wrong.

Thanks,
Randy

Mar 6 '07 #1
5 1374
Rabel wrote:
I am new to asp and have tried a few things and cannot get it to
work. I thought this code
<input type="hidden" name="x_cust_id" value="<%= x_email %>">
would work for making the x_cust_id value equal what was put in the
x_email field - but that doesnt work - any idea what Im doing wrong.

Thanks,
Randy
1. You haven't properly defined "doesn't work". What are the symptoms that
lead you to believe it is not working? Better yet, show us the result you
expect to achieve, followed by the result you are actually getting
2. You haven't shown enough code for us to help you. From what I can see
"x_email" is a variable, not a field. The following works for me:

<%
dim x_email
x_*************@something.com
%>
<html><body>
<input type="hidden" name="x_cust_id" value="<%= x_email %>">
</body></html>

When I run this page and View Source, here is what I see:

<input type="hidden" name="x_cust_id" va***********@something.com>

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 6 '07 #2
1. You haven't properly defined "doesn't work". What are the symptoms that
lead you to believe it is not working? Better yet, show us the result you
expect to achieve, followed by the result you are actually getting
2. You haven't shown enough code for us to help you. From what I can see
"x_email" is a variable, not a field. The following works for me:

<%
dim x_email
x_email=myem...@something.com
%>
<html><body>
<input type="hidden" name="x_cust_id" value="<%= x_email %>">
</body></html>

When I run this page and View Source, here is what I see:

<input type="hidden" name="x_cust_id" value=myem...@something.com>

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Thanks Bob,
well its part of a cart but the email field is
<input name="x_email" type="text" id="x_email" value="">
and the form is
<form name="checkout_NOadsf_complete" method="POST" action="https://
secure.adfadsf.net/asdf/asdfdafsfd.dll">
when it goes to the next page I want the field x_cust_id to equal what
was entered in the email field - right now I am getting "x_email" in
this field not the variable

Thanks

Mar 6 '07 #3
Rabel wrote:
>1. You haven't properly defined "doesn't work". What are the
symptoms that lead you to believe it is not working? Better yet,
show us the result you expect to achieve, followed by the result you
are actually getting
2. You haven't shown enough code for us to help you. From what I can
see "x_email" is a variable, not a field. The following works for me:

<%
dim x_email
x_email=myem...@something.com
%>
<html><body>
<input type="hidden" name="x_cust_id" value="<%= x_email %>">
</body></html>

When I run this page and View Source, here is what I see:

<input type="hidden" name="x_cust_id" value=myem...@something.com>

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"

Thanks Bob,
well its part of a cart but the email field is
<input name="x_email" type="text" id="x_email" value="">
and the form is
<form name="checkout_NOadsf_complete" method="POST" action="https://
secure.adfadsf.net/asdf/asdfdafsfd.dll">
when it goes to the next page I want the field x_cust_id to equal what
was entered in the email field - right now I am getting "x_email" in
this field not the variable

Thanks
<input type="hidden" name="x_cust_id" value="<%=
Tequest.Form("x_email") %>">

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 6 '07 #4
<input type="hidden" name="x_cust_id" value="<%=
Tequest.Form("x_email") %>">

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"- Hide quoted text -

- Show quoted text -
When I put that in I get this error
Microsoft VBScript runtime error '800a01a8'

Object required: ''

/forms/membershipasp.asp, line 536

that is the line that im changing too

Mar 6 '07 #5
On Mar 6, 5:14 pm, "Rabel" <R...@Creativeness.comwrote:
<input type="hidden" name="x_cust_id" value="<%=
Tequest.Form("x_email") %>">
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"- Hide quoted text -
- Show quoted text -

When I put that in I get this error

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/forms/membershipasp.asp, line 536

that is the line that im changing too
Sorry I realized you misspelled Request, I fixed that and it still
doesnt pass it through - any idea whats going on

Mar 7 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert | last post by:
Hello, Can anyone help with this? On my online order form, I need to send a few variables to my credit-card processor. These variables are for non-secure customer comments, and will be sent...
1
by: Dave Smithz | last post by:
Hi there, I have implemented a login sequence using session variables for a PHP/MySQL DB which I took over development. I read some books and this NG and it seemed straight forward. However the...
15
by: Alfonso Morra | last post by:
Hi, I have some code from an example, that I want to retrofit into my project. The code from the example has the following line: SharedAppenderPtr myAppender( new...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
9
by: hope | last post by:
Hi Access 97 I'm lost on this code please can you help ================================= Below is some simple code that will concatenate a single field's value from multiple records into a...
11
by: dhnriverside | last post by:
Hi peeps Ok, so I thought I'd have a go at making a console app in VS2k5... I haven't written any windows apps for years, let alone dos apps (been web programming) and I've hit a dumb error... ...
4
by: DOTNET | last post by:
Hi, Anybody help me regarding this error: I am assigning the values to the session variables when the button is clicked and passing these session variables to the next page and when I am...
2
by: John Regan | last post by:
Hello All I am trying to find the owner of a file or folder on our network (Windows 2000 Server) using VB.Net and/or API. so I can search for Folders that don't follow our company's specified...
6
by: karafire2003 | last post by:
Hey there i was wondering if someone can help me with my program. I thought i had it down...but i'm having some problems. Here's the assignment. Write a C function named change() that accepts a...
2
by: hcaptech | last post by:
This is my Test.can you help me ? 1.Which of the following statement about C# varialble is incorrect ? A.A variable is a computer memory location identified by a unique name B.A variable's name...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.