Jump to content

just starting PHP and WML


x2srj

Recommended Posts

Hi,

I've got a wml page that passes a variable:

<go href="bookingref_truncate.php?bookref=MU4657">

this goes to a PHP page like....

<card id="booking">
<onevent type="ontimer">
<go href="search.wml#step1">
<?php

$changeBookref = substr('bookref', 0, 2);

if ($changeBookref == "AB"){
echo "<setvar name=\"bookref\" value=\"ABBA\" />";
}
else ($changeBookref == "MU"){
echo "<setvar name=\"bookref\" value=\"MUSE\" />";
}

blah blah blah blah blah blah

This PHP page I need to do two things; one I need to truncate the value to just the first two alphanumerics; and secondly I need the if statement to pick up the value and pass it correctly... The trouble I'm having is I don't appear to be getting the value???

help PLEASE :))))))

Many many thanks in advance :)
Link to comment
https://forums.phpfreaks.com/topic/28098-just-starting-php-and-wml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.