Hello, Peter again on Eus’s account.
And again asking for help.
I have to put an php page into an normal fw page. It is a calculator, that has a php page.
i did a markup and put the php text in it. it show’s up very nice.
But do i have to put the linking php page into the site map?
also, can i style this into freeway, or do i have to style the php page?
i do not know very much about php, but reading the php text, it does have some text about styles. so that sounds logical.
But i have to make the calculator link to a solution
So… people make a choise… and when on the end they choise ‘sent’ they wil get an answer… this all is in the php.
stupid of me… http://test.siteovernight.nl
this is the site, don’t shoot me, its a first and i have been working on it since a month at least. with help…
Peterjan
Can you post the PHP code on Pastie? (http://pastie.org) and then post the URL of the code back here? Those of us of a coding nature might be able to figure it out that way. There’s LOTS of ways to intermingle PHP and Freeway, and it really depends on what you are trying to do which one we would recommend.
i’m sorry for my very late response. With a wife and 2 kids sick not much time to be on a computer.
I did not get the pastie.org to work. i’m a bit in a mist right now.
May i explaine what is wrong please?
Me with my big mouth…
I am trying to make a site nicer. It’s a site that has a few php calculaters on it. ( the url is www.autolease.nl)
i did try to make a nicer design ( http://test.siteovernight.nl/) i was realy happy with it, but i can not get the calculater scripts into the freeway files.
Now obvisous i don’t mind, if i have to ‘hire’ somebody to do it for me. ( Please) but i would realy know how to…
( not even to do it, this, myself, but for future )
is what i want a realy no-no or can it be done??
it are the calculator and fincancial lease pages that are killing me.
I would be so very greatfull if i could get this site to work.
Peter ( who think it is time he started his own account here)
If you can post the actual PHP code to Pastie, then we can see what’s going on inside. The very nature of PHP (and other server-side languages) is that they cover their tracks. By the time you view source in a browser, the actual program has executed, and all you get to see are the results, not the logic that made them.
Set up a text editor to be one of your “browsers” in Freeway. Download the free TextWrangler from http://barebones.com and install it, then File / Preview in Browser / Browser Setup, click New, then navigate to TW in your Applications folder and click Open.
In Freeway, use Preview in Browser / TextWrangler to open the page code. Select all, and Copy.
Go to http://pastie.org – you’ll start out at the Paste screen by default. Click into the text field in the center of the page and Paste. Click on the Language picker and choose HTML / XML. Press the Paste button near the bottom of the screen.
You’ll be redirected to the page you just created in step 3. Copy the URL out of your browser’s location field. It will be something like http://pastie.org/12345 – paste that here, and anyone can see your code in its raw format.
Naturally, if there are any passwords or other sensitive matter in your code, mark them out with xxx or passwordHere or similar, so we know there’s something there, but you’ve elided it.
Ok… thank you so much Walter!
the browser is http://pastie.org/1001690
but i probably did not do it right.
i did the php script in a mark up… when i push verzen ( sent) i get to a simular page that has the same calculator on it…
where it has to be an on bigger calculator…
Perhaps the real-time logic of the calculator is done in JavaScript, and the php page that’s linked to is used to do an order. I see references to JavaScript methods in this code that don’t appear to be in the page head or any linked scripts.
If this is the financiallease.php, then you might be missing an include somewhere that brings more logic into the page.
Okay. Very definitely, the first page posts to itself (the form Action is just the querystring that signals to the form handler what sort of request you’re making) and yet the handler script proper is entirely missing.
If the handler script is included at the top of the page, then this will probably work. Look in your original example for something that looks like this:
<?php include('form_handler_logic.php'); ?>
The include file could be named almost anything (as long as it ends in .php), and the command could be include, include_once, require, or require_once. It would most likely be at the very top of the HTML.
The second one seems to be missing a library of JavaScript, something which declares the function change_bedrag(), which is called by the picking list where you change some rate (not sure, since I don’t speak the language). Once you locate that and link to it with a script tag: