473,775 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1719

"Dan" <to******@yahoo .com> schrieb im Newsbeitrag
news:f0******** *************** ***@posting.goo gle.com...
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_showTransferV abs($_pt = true, $_gt = true){
if($_pt) global $HTTP_POST_VARS ;
if($_gt) global $HTTP_GET_VARS;
$_font_color_po st = '<font style="color:#f f0099;">';
$_font_color_ge t = '<font style="color:#0 099cc;">';
$font_ = '</font>';
$_font_size = '<font style="font-size: 11px;">';
echo $_font_size;
if($_pt){
echo '<br>'.$_font_c olor_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_c olor_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_showTransferV abs();

hope this helps markus
Jul 17 '05 #2
Dan
"markus berges" <m.******@promi o.net> wrote in message news:<cn******* ******@news.t-online.com>...
"Dan" <to******@yahoo .com> schrieb im Newsbeitrag
news:f0******** *************** ***@posting.goo gle.com...
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_showTransferV abs($_pt = true, $_gt = true){
if($_pt) global $HTTP_POST_VARS ;
if($_gt) global $HTTP_GET_VARS;
$_font_color_po st = '<font style="color:#f f0099;">';
$_font_color_ge t = '<font style="color:#0 099cc;">';
$font_ = '</font>';
$_font_size = '<font style="font-size: 11px;">';
echo $_font_size;
if($_pt){
echo '<br>'.$_font_c olor_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_c olor_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_showTransferV abs();

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
1831
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 where to start but I have assumed the following steps need to be taken: 1) Make an http connection to the remote script (http://server/script.cgi) 2) Fill out the html form (1x TEXT and 2x SELECT input fields) 3) Submit the form
19
2999
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 a method for the form?. If I give it an empty action <form action="" ..... it validates OK. Is this acceptable or is there a better/standards correct way? Thanks.
5
6088
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 Internet. Specifically, marking up a document that will contain multiple related form controls (intended exclusively for client-side scripting) that would never be intended to be submitted. I realise that that concept is a non-starter in an Internet...
7
20372
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 browsers? The script bellow is IE only. It fails FF 1.0 and NN 7. Also, if I can trap the keypress I would like to use it to tab to the next tabindex.
3
2076
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 export images of the main form (it uses graphs and tables that are dynamically created) into Word documents to form part of financial submission documents. The most obvious method to do this would be to take a screenshot and paste it into Word,...
2
2733
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 actual application automatically navigates to some websites, makes a screenshot and transforms them into small thumbnails. At the moment I'm using the imported function BitBlt from gdi32.dll. This solutions only works, if the
1
1277
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 a payment processing site, and the response from that form submission parsed by my code to determine if it was successful or not. I discovered that on the response page, they provide a hidden form field with a value of 'success' or 'fail'. I...
8
4794
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
2507
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 short time frame that I've been given, a week to be exact, I do not have the luxury to explore it on my own so here are the requirements: 1. Automate the personnel forms that employees use for changing their information, which is currently in pdf...
0
9622
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10268
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10107
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10048
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7464
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2853
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.