Reload page : Keep current form entries

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
facets
Forum Contributor
Posts: 273
Joined: Wed Apr 13, 2005 1:53 am
Location: Detroit

Reload page : Keep current form entries

Post by facets »

Hi Gang,

As the title suggests. How does one reload a page but keep the current form entries.
ie, I've just updated a stock code from a popup window and wish to use that code as a selection (from a dropdown).

Any tutorials or links on this would be appreiciated.

many thanks, will
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post by delorian »

You do not have to reload the page. You can use JavaScript to "transfer" data from popup window field to your form field. phpBB has a similar soultion for transfering user names when e.g. sending a PM. Of course, you can always submit the form and insert the post data into form fields again.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

give the forms value, perhaps using $_GET
or $_POST them inside hidden input fields, and redirect to the necessary page
facets
Forum Contributor
Posts: 273
Joined: Wed Apr 13, 2005 1:53 am
Location: Detroit

Post by facets »

I'm unsure how to use your example.
Here's what i'm trying to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo &quote;<input type='hidden' name='paperCategoryId' value=&quote;.$_GETї'paperCategoryId'].&quote;>&quote;;
any assistance is appreicated.. TIA. Willes, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. WilltockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistancee seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willy trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Will (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on thuse your example.
Here's what i'm trying to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. WillockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<inp description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo enu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. WillStockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET&#mples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Will".$_GET['paperCategoryId'].">";


any assistance is appreicated.. TIA. Willto populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Will do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willa submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
[/php:1:d51ba1818ed the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Will
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "&ampng to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo &quote;&lt;input type='hidden' name='.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :
[php:1:d51bscription etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. WilloryId'].">";


any assistance is appreicated.. TIA. WillstockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo &quote;&
Here's what i'm trying to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Will popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willo do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willng to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo &quote;&lt;input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].".
Here's what i'm trying to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willes the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the teur example.
Here's what i'm trying to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo &quote;&lt;input type='hidden' name='paperCategoryId' value=&quote;.$_GET&#1111;'paperCategoryId'].&quote;o..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminolog down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo &quote;&lt;input type='hidden' name='paperCategoryId' value=&quote;.$_GET&#1111;'paperCategoryId'].&quote;&gt;&quote;;
any assistance is appreicated.. TIA. WikId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willuse your example.
Here's what i'm trying to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willry (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willuse your example.
Here's what i'm trying to do..

Paper Category (Drop down) reads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
aads from DB to populate DropDown Menu
StockId does the same, but stockId has a submit button which displays the stockId & description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo &quote;&lt;input type='hidden' name='paperCategoryId' value=&quote;.$_GET&#& description etc in a popup.

When stockId 'submit' is submitted the form resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Willm resets and clears all entered data.
I've seen this done correctly many times, but am unsure on the terminology to search for examples.

My trial failed :

Code: Select all

echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";
any assistance is appreicated.. TIA. Will
echo "<input type='hidden' name='paperCategoryId' value=".$_GET['paperCategoryId'].">";


any assistance is appreicated.. TIA. Will
Post Reply