Help with variables

Help with variables

am 06.03.2007 21:38:17 von Rabel

I am new to asp and have tried a few things and cannot get it to
work. I thought this code

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

Re: Help with variables

am 06.03.2007 22:11:12 von reb01501

Rabel wrote:
> I am new to asp and have tried a few things and cannot get it to
> work. I thought this code
>
> 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_email=myemail@something.com
%>




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



--
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"

Re: Help with variables

am 06.03.2007 22:34:23 von Rabel

> 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
> %>
>
>
>
>
> When I run this page and View Source, here is what I see:
>
>
>
> --
> 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

and the form is


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

Re: Help with variables

am 06.03.2007 22:53:46 von reb01501

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
>> %>
>>
>>
>>
>>
>> When I run this page and View Source, here is what I see:
>>
>>
>>
>> --
>> 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
>
> and the form is
>
> 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
">

--
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"

Re: Help with variables

am 06.03.2007 23:14:47 von Rabel

> ">
>
> --
> 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

Re: Help with variables

am 07.03.2007 17:34:06 von Rabel

On Mar 6, 5:14 pm, "Rabel" wrote:
> > ">
>
> > --
> > 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