473,588 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1376
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***********@s omething.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...@s omething.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...@s omething.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.a sp, line 536

that is the line that im changing too

Mar 6 '07 #5
On Mar 6, 5:14 pm, "Rabel" <R...@Creativen ess.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.a sp, 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
2507
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 through the usual metod, i.e., <form action="https://orderpage.ic3.com/hop/orderform.jsp" method="post">
1
2254
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 website I have taken over uses two frames. The left hand side is always a navigation frame with the righthand side of the screen always being the target. I developed a main web page where login takes place and if successful a session variable...
15
3340
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 RollingFileAppender("MyAppender")) I want to move this line of code to a constructor in a wrapper class, so that I can determine the appropriate Appender name during the object's
8
5460
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
9
2402
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 single string separated by a user defined character. There is no error trapping (by design), USE AT YOUR OWN RISK.
11
1593
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... "An object reference is required for the nonstatic field, method or property " This is occuring in my main function...
4
2652
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 printing these session variables they are printing. After that I am assigning these things in hidden object and in the form submit action I am receiving these hidden values like the following:
2
5033
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 folder structure and naming conventions and then send a Net send message to those users telling them to rectify. The information I want to get is when you select the file/folder and then: Properties -> Security Tab -> Advanced Button -> Owner Tab ->...
6
6569
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 floating point number of total coins and the addresses of the integer variables named quarters, dimes, nickels, and pennies. The function should determine the number of quarters, dimes, nickels, and pennies in the total coins number passed to it and...
2
10015
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 is used to access and read the value stored in it C.A variable is allocated or deallocated in memory during runtime D.A variable can be initialized at the time of its creation or later 2. The.……types feature facilitates the definition of classes...
0
7929
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7862
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,...
0
8357
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 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...
1
7987
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8223
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2372
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
0
1196
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.