468,247 Members | 1,328 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

Capturing results of a Form Submission

Dan
A Newbie needs help!

Is it possible, in PHP, to capture the resulting HTML of a submitted
form returning from a server and incorporate that HTML into say a
table, or some predefined layout?

I am trying to incorporate the resulting HTML into a layout I have
created in order to keep the look & feel of my site consistent, but
the resulting page is a plain "cheesy" page.

Any ideas how I can get around this?

Thanks,

Dan
Jul 17 '05 #1
2 1536

"Dan" <to******@yahoo.com> schrieb im Newsbeitrag
news:f0**************************@posting.google.c om...
A Newbie needs help!

Is it possible, in PHP, to capture the resulting HTML of a submitted
form returning from a server and incorporate that HTML into say a
table, or some predefined layout?

I am trying to incorporate the resulting HTML into a layout I have
created in order to keep the look & feel of my site consistent, but
the resulting page is a plain "cheesy" page.

Any ideas how I can get around this?

Thanks,

Dan


hi

to transfer post variables your script must have a form tag such as

<form name="form_name" method="post" action="<?php echo $PHP_SELF; ?>">
....
some input objects
<input type="text" ...
...
</form>
to see which values are transmitted simply place the following code
into your script and submit it

e.g

<?php

function b_showTransferVabs($_pt = true, $_gt = true){
if($_pt) global $HTTP_POST_VARS;
if($_gt) global $HTTP_GET_VARS;
$_font_color_post = '<font style="color:#ff0099;">';
$_font_color_get = '<font style="color:#0099cc;">';
$font_ = '</font>';
$_font_size = '<font style="font-size: 11px;">';
echo $_font_size;
if($_pt){
echo '<br>'.$_font_color_post.'the incoming POST-vabs:'.$font_;
while(list($key, $val) = each($HTTP_POST_VARS)){

$_pt = false;
echo '<br> name=" '.$_font_color_post.$key.$font_.' " value="
'.$_font_color_post.$val.$font_.' "';
}
if($_pt) echo '<br>...<i></i>not even one</i>...';
}
if($_gt){

echo '<br>'.$_font_color_get.'the incoming GET-vabs:'.$font_;
while(list($key, $val) = each($HTTP_GET_VARS)){

$_gt = false;
echo '<br> name=" '.$_font_color_get.$key.$font_.' " value="
'.$_font_color_get.$val.$font_.' "';
}
if($_gt) echo '<br>...not even one...';
}
echo $font_;
}
b_showTransferVabs();

hope this helps markus
Jul 17 '05 #2
Dan
"markus berges" <m.******@promio.net> wrote in message news:<cn*************@news.t-online.com>...
"Dan" <to******@yahoo.com> schrieb im Newsbeitrag
news:f0**************************@posting.google.c om...
A Newbie needs help!

Is it possible, in PHP, to capture the resulting HTML of a submitted
form returning from a server and incorporate that HTML into say a
table, or some predefined layout?

I am trying to incorporate the resulting HTML into a layout I have
created in order to keep the look & feel of my site consistent, but
the resulting page is a plain "cheesy" page.

Any ideas how I can get around this?

Thanks,

Dan


hi

to transfer post variables your script must have a form tag such as

<form name="form_name" method="post" action="<?php echo $PHP_SELF; ?>">
...
some input objects
<input type="text" ...
...
</form>
to see which values are transmitted simply place the following code
into your script and submit it

e.g

<?php

function b_showTransferVabs($_pt = true, $_gt = true){
if($_pt) global $HTTP_POST_VARS;
if($_gt) global $HTTP_GET_VARS;
$_font_color_post = '<font style="color:#ff0099;">';
$_font_color_get = '<font style="color:#0099cc;">';
$font_ = '</font>';
$_font_size = '<font style="font-size: 11px;">';
echo $_font_size;
if($_pt){
echo '<br>'.$_font_color_post.'the incoming POST-vabs:'.$font_;
while(list($key, $val) = each($HTTP_POST_VARS)){

$_pt = false;
echo '<br> name=" '.$_font_color_post.$key.$font_.' " value="
'.$_font_color_post.$val.$font_.' "';
}
if($_pt) echo '<br>...<i></i>not even one</i>...';
}
if($_gt){

echo '<br>'.$_font_color_get.'the incoming GET-vabs:'.$font_;
while(list($key, $val) = each($HTTP_GET_VARS)){

$_gt = false;
echo '<br> name=" '.$_font_color_get.$key.$font_.' " value="
'.$_font_color_get.$val.$font_.' "';
}
if($_gt) echo '<br>...not even one...';
}
echo $font_;
}
b_showTransferVabs();

hope this helps markus


Markus, thanks very much for taking the time to reply. I guess I'm
not asking the question correctly. I'm not trying to reformat or
create the form, I'm simply trying to format the resulting html into
an existing html page.

For example: I have an HTML page with an automotive part picture and
an order button. When the order button is clicked, a new HTML page is
created which basically shows an invoice, or shopping cart if you
will. The invoice page/shopping cart is a plain html page with a
simple table showing the quantity, part number, description, etc. I
would like to somehow incorporate that basic invoice page into my html
layout--with my menu, title graphic, etc.

Is this possible with PHP?
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Richard Cornford | last post: by
7 posts views Thread by jerrygarciuh | last post: by
3 posts views Thread by Andi | last post: by
2 posts views Thread by Carsten Klotz | last post: by
1 post views Thread by Steve B. | last post: by
8 posts views Thread by yawnmoth | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.