Computing.Net > Forums > Web Development > wap/wml help!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

wap/wml help!

Reply to Message Icon

Name: USMC
Date: April 21, 2005 at 19:05:48 Pacific
OS: xp
CPU/Ram: 512
Comment:

I am having a really hard time trying to figure this out, I have finally made my wapsite wap, but the validator found errors when parsing, this script also contains php which makes it even harder, anyway you are guys are able (willing) to look throught this code, and clean it up a bit I would greatly appreciate it... here is the snippet of the code that I am having trouble with...


// This begins the results page

if ($E) {
$url=($f_rich /*and $mode=='books' and $locale=='us'*/)?"$norserver/exec/obidos/ASIN/".$E['Asin'].'/ref=nosim/'.$Aassociates_id[$locale].'?dev-t='.$dev_token:$E['url'];
echo "<td valign='left'>";
if ($d=$E['Isbn']) {
echo "$d<br />";
}

$dx=$E['ListPrice'];
if ($dx) {
echo "".xl('Price:')." $dx
</br>";
}

$do=$E['OurPrice' ];
$du=$E['UsedPrice'];
if ($du) {
echo "".xl('Used:')." $du
</br>";
}
if ($do and $du) print ' ';
if ($do) {
echo "".xl('New:')." $do
</br>";
}
$ds=$E['SalesRank'];
if ($ds) {
// $english_format_number = number_format($ds); //work on this
echo xl('Rank').": $ds";

}
if ($ds) print " ";
if ($da or $ds) print '<br />';
echo xl('')."";

if ($d=$E['ProductName']) {
echo "$d<br />";
}
if (is_array($dd=$E['Authors']['Author'])) {
echo xl('by').": ";
foreach ($dd as $i=>$d) {
if ($i) print ' ';
//echo " echo "$d";
}
echo '<br />';
}
else if ($d=$dd) {
echo xl('by').": ";
echo "$d<br />";
}
$dm=$E['Manufacturer'];
$dr=$E['ReleaseDate' ];
if ($d=$E['Manufacturer']) {
echo xl('publisher').": $d
</br>";
}
if ($dm and $dr) print ' ';
if ($d=$E['ReleaseDate']) {
echo xl('released').": $d";
}
if ($dm or $dr) print '<br />';

if ($do or $du) echo '<br />';
echo "</td>";
}
}

// This ends the results page

$mtime3=getmicrotime(); //time at end

function getmicrotime() {
list($us,$s)=explode(' ',microtime());
return (float)$us+(float)$s;
}

echo "</card>\n";
echo "</wml>\n";


//


Its mostly the html part that is giving me problems, there is not need to congifure the php!



Sponsored Link
Ads by Google

Response Number 1
Name: Mark.UK
Date: April 22, 2005 at 13:54:03 Pacific
Reply:

Are there supposed to be inconsistances? Your code is pretty much alien to me but in html or wml I'm sure there is no </br> or <br/> tags only br (within tags)

M


0

Response Number 2
Name: Mark.UK
Date: April 22, 2005 at 18:17:36 Pacific
Reply:

Take a look here:

http://www.w3schools.com/wap/wml_reference.asp

M


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: wap/wml help!

php help: submitting txt fields www.computing.net/answers/webdevel/php-help-submitting-txt-fields/2871.html

Help with a dreamweaver issue.... www.computing.net/answers/webdevel/help-with-a-dreamweaver-issue/1242.html

help with Perl Mechanize www.computing.net/answers/webdevel/help-with-perl-mechanize/83.html