Solved

Using value in hidden field

Posted on 2002-07-12
4
154 Views
Last Modified: 2010-04-09
I have one form passing a value to an other form, and I would like this value to be part of the POST in that second form.
<form action= $loginurl onsubmit...

Isn't there something like

$urlposted I can use to where $urlposted will be replaced by the posted value. I know how to do it with ASP but I think plain HTML might be enough.
0
Comment
Question by:alexandram
4 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 7151043
as far as my understanding goes...

$loginurl and $urlposted are plain variables, these variables can have any values, for example "heloworld" etc.

but most probably these variables wil have an url like http://www.domain.com/login.pl etc.

so if you want to d it in plain html, you will have to replace <form action="$urlposted"> by the actual value of the $urlposted variable.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 7151132
do you mean something like this?

<form action= $loginurl onsubmit.... >
  <input type=hidden name=loginurl value=$loginurl>
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7240653
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
split lexxwern and ahoffmann

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7263498
Per recommendation, force-accepted.

Netminder
CS Moderator

lexxwern: points for you at http://experts-exchange.com/Web/Web_Languages/HTML/Q_20350842.html
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AdminLTE with wordpress 15 136
How to display div value on input field value in php 11 53
100% tall div not scrollable on iPhone 3 20
CSS Style Effect 2 6
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question