Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:19:23 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: PHP HTML Form in WB  (Read 1175 times)
POPDUM

Offline Offline

Posts: 23


« on: December 11, 2007, 04:55:31 PM »

Hi,

I had a Loan Calculator written in PHP/HTML, which I now need to integrate into a WB page. This page has two WYSIWYG sections; now, for the calculator I don't know what to use. I cannot use a code section as I have HTML with embedded PHP, so I can't do an echo or print.

Is there a way I could modify the Form section so that when the user presses "Submit", my calculation module will be called, and then the calculated monthly payment with all the fields the user entered are displayed? If not, how can I implement this functionality?

Thanks a lot for your time and help.
Logged
pcwacht
Guest
« Reply #1 on: December 11, 2007, 08:59:17 PM »

make a code section
in it echo your html and don't echo your php and remove the php tags
(simple) example
Code:
<b>Hello <?php echo $username?></b>
would become
Code:
echo '<b>Hello ';
echo $username;
echo '</b>";

It is really that easy!!


John

Logged
POPDUM

Offline Offline

Posts: 23


« Reply #2 on: December 12, 2007, 06:51:18 AM »

Thank you very much John! I will do as you sai.
Logged
POPDUM

Offline Offline

Posts: 23


« Reply #3 on: December 12, 2007, 01:31:04 PM »

Thaynks again, John. The form's working great!
Logged
pcwacht
Guest
« Reply #4 on: December 12, 2007, 04:30:10 PM »

No problem
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!