Jump to content

makatak88

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

makatak88's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. at this point its the only way i know to pass that value to the next page. Im learning.
  2. hello, still very new at this but here goes. on the page that posts the form i have a hidden echo like so. echo "<input type='hidden' name='price' value='$row[price]' />"; on the page that it posts to i have $first_number = $dbh->quote($_REQUEST['price']); $second_number = 20; $sum_total = $first_number + $second_number; $direct_text = 'The two variables added together = '; print ($direct_text . $sum_total); I get 20 as the result. any ideas? also a couple more notes that may help: datatype of price is int in db if i echo out $first_number i get '45' not 45 if i try $newnumber = (int)$first_number; echo $newnumber i get 0 cheers guys
  3. gday all! just starting to learn php but having a liitle problem with \n forcing a line break. in my situation it simply doesnt. looking at this what have i done wrong? echo "<div class=\"imgcontainer\"><a href='$row[filename]' rel='shadowbox[thingo]'><img class= 'thumbnail' img src='$row[filename]'/></a><div class=\"thetext\">Artwork: $row[name]\nArtist:$row[artist]</div></div> "; Thanks
×
×
  • 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.