He everyone,
Cause a lack of time I was wondering if someone in here could make me a cgi script / or something like that that submits information from one form into the hiddenfields of another...
So if I have a page with one form and his info must be submitted to hiddenfields in another form..
Grtz,
BlogedThere is no universal script to plug into an existing script that will forward and retain data in hidden fields (at least not that I know of).
But if you know how to code its very simple to do, even if pressed for time. Parse the data and either send it to a new script or the existing script for further processing. Then "plug in" the data into hidden fields by referencing the name/value pair sent by the form, something like
<form method=post action=yourscript.pl>
<input type=text name=realname>
<input type=text name=comments>
<input type=submit value=Submit>
</form>
when that data sends it form, parse the data and then plugin the data into hidden fields in the next page/form:
<form method=post action=yourscript.pl>
<input type=hidden name=realname value=$FORM{'realname'}>
<input type=hidden name=comments value=$FORM{'comments'}>
<input type=text name=address>
<input type=text name=phonenumber>
<input type=submit value=Submit>
</form>
just change $FORM to whatever you use ($IN, $DATA, etc)
You can basically do the same using JAVA script if you don't need or want to pass the data to the server until the end.
Regards,
Kevin
Cause a lack of time I was wondering if someone in here could make me a cgi script / or something like that that submits information from one form into the hiddenfields of another...
So if I have a page with one form and his info must be submitted to hiddenfields in another form..
Grtz,
BlogedThere is no universal script to plug into an existing script that will forward and retain data in hidden fields (at least not that I know of).
But if you know how to code its very simple to do, even if pressed for time. Parse the data and either send it to a new script or the existing script for further processing. Then "plug in" the data into hidden fields by referencing the name/value pair sent by the form, something like
<form method=post action=yourscript.pl>
<input type=text name=realname>
<input type=text name=comments>
<input type=submit value=Submit>
</form>
when that data sends it form, parse the data and then plugin the data into hidden fields in the next page/form:
<form method=post action=yourscript.pl>
<input type=hidden name=realname value=$FORM{'realname'}>
<input type=hidden name=comments value=$FORM{'comments'}>
<input type=text name=address>
<input type=text name=phonenumber>
<input type=submit value=Submit>
</form>
just change $FORM to whatever you use ($IN, $DATA, etc)
You can basically do the same using JAVA script if you don't need or want to pass the data to the server until the end.
Regards,
Kevin