php page into fw site

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 :wink:

So… people make a choise… and when on the end they choise ‘sent’ they wil get an answer… this all is in the php.

( i hope i make some sense)
Peterjan


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As with any question like this alink to where you can see your page online

Freeway handles internal links no differently whatever the page type

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

But do i have to put the linking php page into the site map?

I take it that your form is supposed to send the info to the financiallease.php page

As I dont understand Dutch? - it is a bit difficult to follow.

Can you just outline exactly what you started with and what you are trying to get as a result

Leasebedrag	
Prijs p/m	
Looptijd		
Slottermijn	
Eigen inbreng

Should I be able to enter figures into all of these?

It may be that the php from the financiallease page should all be on the Calculator page.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter, i find out how to do the pastie thing first :slight_smile:
PeterJan


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

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)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry Walter,
Pastie and me are not working yet.
Peter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s a quick run-through:

  1. 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.

  2. In Freeway, use Preview in Browser / TextWrangler to open the page code. Select all, and Copy.

  3. 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.

  4. 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.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As far as I can see this page is set to send the form details to

<form name="bereken" method="post" action="financiallease.php?reqmode=calculator">

ie the financiallease.php page

So you would need to Pastie the code on that page

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Or if that is the contents of financiallease.php you either didn’t copy the contents into Pastie correctly or there is NO PHP on that page.

Go back to Walters step by step and try it again.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

There’s a couple of possibilities here:

  1. 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.

  2. If this is the financiallease.php, then you might be missing an include somewhere that brings more logic into the page.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

http://pastie.org/1001783 is the page for the financial lease

and i did the calculator again ( hope alright now)
http://pastie.org/1001786

Peter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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:

<script src="path/to/that/script.js" type="text/javascript"></script>

Then it too stands a chance of working, or at least that gets you to the next frame of the game of Debug That Script.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

i will get to it right away Walter… thank you so much.
realy! Thank you so very much.
Peter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options