473,385 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1708

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: bmgx | last post by:
I would like to use an already existing online service (currency converter) basically consisting of a html form with a few options that is submitted and returns the results. I really don't know...
19
by: Pete | last post by:
I have form/select which executes a function using onchange. No problem. However, when I validate the page with a strict HTML 4.01 doctype at http://validator.w3.org, it demands either an action or...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
7
by: jerrygarciuh | last post by:
Hello, I have been playing with various Googled solutions for capturing the <Enter> key to suppress form submission. My first question is whether anyone has a script that works in all common...
3
by: Andi | last post by:
Greetings all, I have recently created a database that functions as an inventory analysis tool for the department I work in. Recently, there has been a user requirement to have functionality to...
2
by: Carsten Klotz | last post by:
Hi, does someone know, if it's possible capturing the content of a panel, when its form has state "minimized"? Details: A panel contains a Webbrowser object (AxSHDocVw.AxWebBrowser). My...
1
by: Steve B. | last post by:
I was hoping someone would know if this is possible in ASP.NET. I'm creating a site where the user fills out a sign-up form on our site. The information from that form needs to be sent via SSL to...
8
by: yawnmoth | last post by:
Say I have the following HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <form action="">
1
by: Homer | last post by:
Hi, I just got a requirement from my HR department to automate their form submission process and integrate it into the Intranet project that I had just completed Phase 1 of. Because of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.