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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.