473,386 Members | 1,609 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,386 software developers and data experts.

transfer variable from html to form

Can anyone help me please!!
I need to transfer the value of a variable from a web page to a hidden field in a web form which can then be sent via email.

I have several web pages that link to a single form used for people to enter their details & comments which is then mailed as an email using a ASP script.

I want the form to send a hidden field called "subject" to let menknow which item the customer is refering to without them having to enter it themselves.

I hope someone can help me..

many thanks in advance
Nov 27 '06 #1
3 2599
ronverdonk
4,258 Expert 4TB
When you talk about 'a variable', I assume you are referring to a PHP or ASP or other server-side variable. Using PHP you can simply fill the form value with variable $var by statement e.g.
[php]<input type="hidden" name="subject" value="<? echo $var ?>">[/php]

When you use ASP there must be a similiar function to accomplish that.

Ronald :cool:
Nov 27 '06 #2
AricC
1,892 Expert 1GB
When you use ASP there must be a similiar function to accomplish that.
Expand|Select|Wrap|Line Numbers
  1. <input type="hidden" name="subject" value="<? echo $var ?>">
Similiar in ASP
Expand|Select|Wrap|Line Numbers
  1. <input type="hidden" name="subject" value="<% response.write(somevariable) %>">
Nov 28 '06 #3
ronverdonk
4,258 Expert 4TB
Thanks AricC, I don't know any ASP, hence.

Ronald :cool:
Nov 28 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jeremy | last post by:
I'm having some problems with using Server.Transfer and I am hoping somebody can help me. Page 1 has a datagrid, Page 2 has a form. If a user goes to page 1 and selects something out of the...
0
by: Moheb Missaghi | last post by:
Hi: I am trying to use the Transfer statement in an .aspx file to redirect and send Form and QueryString collections to a different page. A good example where this is needed is a checkout page...
5
by: Nedu N | last post by:
Hi All, I am facing a typical problem in my .NET application with the pop-up script messages. The thing is that its working fine when i run on my development machine but not running in expected...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
2
by: Alex | last post by:
Hello, Quick question and I would really appreciate if anybody could helps me. Here are the steps to reproduce the problem. Create simple ASP.Net application. In code behind added protected...
23
by: barryfz | last post by:
I need to be able to move from one web app on my server to another on the same server and preserve the session state. I have played with server.transfer but I get an error saying I can't do this....
3
by: tigerwang1974 | last post by:
I had previously installed php-4.3.9 and apache-2.0.49 on my solaris9 server and written a php script for user login, it ran well until today...:-( today for some reasons I upgraded php to...
2
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi, I'm using Threads, and when I try to do Server.Transfer, I recieved an error. (child object does not exist...) My Code: Dim t As New Thread(AddressOf Hilo) Private Sub Hilo()...
1
by: shyaminf | last post by:
hi everybody! iam facing a problem with the transfer of file using servlet programming. i have a code for uploading a file. but i'm unable to execute it using tomcat5.5 server. kindly help me how to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
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,...
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...

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.