Jump to content

[SOLVED] assing values to the input of pageA from pageB while pageA is being loaded


phpsql1

Recommended Posts

I have two html pages the first one has email, and name input s. the second page should have amoung other things these two info.

I want to display them into the apropriate inputs of the second page while it is being loaded

 

I already assigned those values to variables in php file but my concern is mainly how to use them.

 

any ideas.

 

thanks

the first page has a accept input with value = 'next'.

once I hit 'next' the php relative to the form of the first page is called (gnrlFrm_Pass.php)

this file contains the following

 

<?php

$user = trim($_POST['username']);

$email = trim($_POST['email']);

iclude("gnrlFrm_Main.htm");

?>

 

where username and email are input of type 'text' in (gnrlFrm_Pass.htm). and I want to transfer the values in these input to the appropriate inputs in the second page (gnrlFrm_Pass.htm), so that when this page is loaded the info should be there (for the user not to enter them again)

 

thanks

are you trying to say this:

 

in the first page:

we have <input type "text" name "username">

 

in the php file related to the form of this page we have $username = $_POST(['username'])

 

in the second page:

we have: we have <input type "text" name "theuser">

 

this last line should be changed to <input type "text" name "usename" value "<php echo $username ?>" >

 

is that what you 're trying to say

 

thanks

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.