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

Home Posts Topics Members FAQ

Passing input values between pages.

11 New Member
I'm sure this should be simple enough but I'm really struggling to get my mind around this. I don't have access to a server but am developing a site and I need to pass information from input boxes on one form to a paragraph of text on another.

The simplest example I could think of would be a first page with input boxes for Title and Surname:
[html]
<head>

<title>Test</title>

<table>

<tr>
<td>Title:</td>
<td><p>
<input name="Title" type="text" id="Title" size="20" maxlength="4">
</p> </td>
</tr>
<tr>

<td>Surname:</td>
<td><input name="Surname" type="Text" id="Surname" size="35" maxlength="50"> </td>
</tr>


<td><input name="Reset" type="Reset"
value="Clear Form" />
<a href="Test_Page 2.html">Next</a>
</body>
</html>
[/html]

and a second page which would then show the values in text.

[html]
<head>

<title>Untitl ed Document</title>
</head>

<body>
Hello
</body>

</html>
[/html]
So if I open the first page and put in Mr and Smith the second page reads "Hello Mr Smith"

I've read some information about querystrings and passing information through the link and retrieving it in the next page but can someone help to explain it in this example so I can see it working.

Thanks.
Sep 1 '07 #1
6 2385
Death Slaught
1,137 Top Contributor
You could just use Javascript in my opinion it would be easier heres a link to it just find the javascript tutorial on the left.

Thanks, Death
Sep 1 '07 #2
Death Slaught
1,137 Top Contributor
O and please use proper HTML tags you can find them above the textbox the HTML one looks like this <>

- Death
Sep 1 '07 #3
DLP35
11 New Member
Thanks, Not sure what happened to the tags, pasted out and back into Dreamweaver fine.

Any other thoughts out there?
Sep 1 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
As stated, if the form is on the same page then you must use javascript, or submit the form to a server where the language there can handle it and reserve the page.
Sep 1 '07 #5
DLP35
11 New Member
OK & thanks for updating the text.

The input side is on a different page to the output side but within the same browser session and it won't be interacting with a server.

What would the javascipt be on the two pages in the example above?

It might seem that I'm being stupid, but I'm not going to "get it" from reading another set of online tutorials (we do all have different learning styles after all)
- but I'm convinced if i can just see it working in a simple example like this I can apply the principles in my design.

Thanks again.
Sep 2 '07 #6
drhowarddrfine
7,435 Recognized Expert Expert
You need to ask that question on the javascript board.
Sep 2 '07 #7

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

Similar topics

5
5935
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page contains: <?php $_SESSION = ""; $_SESSION = "";
1
7775
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION =...
5
7604
by: Raju V.K | last post by:
I am developing a web site which requires a set og unique values be transferred between pages and server many times. There fore i decided to put the values in an array so that only one reference to the array is needed ratherthan idividual reference. The situation is like this: When the page is loaded based on the user input say 6 values are...
10
2812
by: Joseph S. | last post by:
Hi, How do I pass a string from one call to a php block to another call in the same page but from another form? Here's my full php code: I'm using two forms in the same page. A hidden field 'f' with values '1' and '2' are used to distinguish calls from one form from those from the
1
2697
by: olduncleamos | last post by:
Hello all. With a background in ASP, I am finding the work required for passing values between pages mystifying. For various obvious reasons, I have eliminated using cookies and session to store state data. The only ASP.NET options left is to use the Server.Transfer to transfer to page 2 from page 1, and then use the context to get whatever...
1
2268
by: williamroy | last post by:
Hello, I've got a form that runs over 5 pages. I need the last page submit button to post all of the answers at one time from the previous 5 pages (to another server). I'd like to see the last page of the form post all answers in clean ?= format as though all form elements were from one page. I use GET to pass name/value pairs from the...
28
3114
by: Skeets | last post by:
i'm passing session and hidden variables between pages. not to mention post values. i'm a little concerned that someone with sufficient knowledge could spoof these vlaues and manipulate the program. is this a valid concern? i'm thinking i can check the submitting page setting up something around the following the following code... ...
4
1288
by: Auddog | last post by:
I'm needing to work with a bar code scanner and have come to realize that after scanning a barcode the unit actually does a hard return. What is the best way to variables from one page to another. I was thinking of creating 5 pages of for input and the last one would have the submit button. I just don't what would be the best way to pass...
1
2333
by: Steve | last post by:
After a few hours of trial and error I have reached the following conclusions, can you please tell me if I am right: I have 2 aspx pages both with the same master page and I wish to pass values from one to the other. 1. The postbackurl method doesn't seem to work with master pages. If I take away the master pages it works. 2. The...
15
5638
by: DLP35 | last post by:
I've been referred here from the HTML forum as I'm told the answer lies in javascript. I'm sure this should be simple enough but I'm really struggling to get my mind around this. I don't have access to a server but am developing a site and I need to pass information from input boxes on one form to a paragraph of text on another. The simplest...
0
7742
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...
0
8089
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, 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. ...
1
7840
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...
0
8127
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...
0
6493
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5638
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5329
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...
1
2257
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
1
1362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.