Welcome to TTF! :cool:
The easiest way is to submit the form to target="_blank" - here's some sample code in HTML/PHP. The PHP code is just so the form doesn't get displayed:
[PHP]<?
if(isset($_POST['something'])) {
echo $_POST['something'];
}
else {
echo '
Input Something: ';
}
?> [/PHP]
Any questions, just ask.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Can be done in php, when yuo name the form's field, then you can export that as a $name variable.
Hmm? What do you mean? What's the other way to do it? I can't think of any right this minute, so maybe you can clear it up. :cool:
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
How does that open up a new window and display the variables submitted? Sorry, not trying to be a dick about it, just not following.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
<?php if(isset($_POST['field1')){
if(isset($_POST['field2'])) {
/* validate field values
if values acceptible
connect to database
update database
set disabled flag ($disabled = true ) to prevent resubmission */ } } ?>
<form action='<?php echo $_server['PHP_SELF']; ?>' method='post'>
<input type='text' name='field1' value='<?php if(isset($_POST['field1'] {echo $_POST['field1'];} ?>' />
<input type='text' name='field2' value='<?php if(isset($_POST['field2'] {echo $_POST['field2'];} ?>' />
<input type='submit' value='whoopdiedoo' <?php if(isset($disabled) {echo 'disabled="disabled"';} ?>/></form>
incomplete code scrap
Form submits to itself displays the values submitted in the form (very messy code but its ONLY a sample of what can be done)
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376