Click to See Complete Forum and Search --> : transfering text from one text box to another???


jango55
07-24-2008, 11:01 PM
i am new to frontpage and i dont really have a clue how to transfer text from one text box to another.

i have a text box on my home page and i want users to be able to type text in then press a button then for the text to appear on a text box on the 2nd webpage. is this even possible? i have been working on it for hours and cant work out how to do it

if anyone can help i would appreiciate it
thanks

eCat
07-24-2008, 11:43 PM
I doubt that FrontPage has a built-in function for this (I could be wrong).

You'd need a language like PHP to tell the browser to pass the text field value to the next page.

eCat

jango55
07-25-2008, 09:25 AM
yeah i know i need a language like php. i was just wondering if anyone knew the code i had to type in?

eCat
07-29-2008, 12:49 PM
Well, it's a bit more complicated than just "typing in" a bit of code.

I would suggest you post your question in the PHP forum.

Post your current HTML code for each page (in [CODE] tags) and someone may be able to help you out.

eCat

ryanbutler
07-29-2008, 03:57 PM
Assuming your home page has a form with a method of post, and the name of the text box is say firstName, then if you redirect to page2, inside page2, you could do something like this:

<body>

<?php

if(isset($_POST['submit'])){

$firstName=$_POST['firstName'];

}

?>

<input type="text" value="'$firstName'">
</body>

You'll probably have to escape the variable in the input element. I think it would just would be double quote ("), then single quote (')