Jump to content

highrevhosting

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.highrevhosting.com/index.php?refer=phpfreaks

Profile Information

  • Gender
    Male
  • Location
    Canada

highrevhosting's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If I am not mistaking your array kind of looks like this? <? $array[a][1] = 'item1'; $array[a][2] = 'item2'; $array[a][3] = 'item3'; $array[b][1] = 'itemb1'; $array[b][2] = 'itemb2'; $array[b][3] = 'itemb3'; $array[c][1] = 'itemc1'; $array[c][2] = 'itemc2'; $array[c][3] = 'itemc3'; I think you want to do is <? foreach($array as $key => $val) { echo "Currently ".$key."<br>"; foreach($val as $k=>$v) { echo "$k => $v <br/>"; } echo "<br>"; } ?> This will output
  2. I need to create a Curl Script that will log into a website via HTTP Post and then connect to a specific page and then pull some content off the page. I am new to CURL, I have done this before with a CGI/Perl but I was hoping to do it with PHP any help would be awesome Thanks in advance,
  3. <?php function wx($var) { $values = array('1'=>'Reset Mode','2'=>'Recommended','3'=>'HOT!','4'=>'Dangerous!'); $length = strlen($var); for($i=0;$i<=$length;$i++) { $temp = substr($var,$i,1); if($temp != '0' && $temp != '.'){ $i = $length + 10; if($temp>=4){ return $values[4]; }else{ return $values[$temp]; } } } } echo wx('0.0000234'); ?> Test this and it works. This outputs "Recommended"
  4. Honestly, I'd use MD5() over Password() The downside you cant really reverse MD5, so forgot password would have to set a new one for them.
  5. Well I think what your saying is you need to know the value of what they are choosing? I would suggest an preset array for example <? $membershipcost= array('regular'=>'10.00','regularpub'=>'20.00'); ?> and the just cross reference their choice with that to get the price <? $membershiptype = $_POST['membershiptype']; if(!$membershipcost[$membershiptype]){ echo $membershipcost[$membershiptype]; } ?>
  6. Do you have the HTML front end? You need to make sure you have enctype="multipart/form-data" Hope this helps.
  7. I know there is an Java Applet that does that, I used to use one back when I was working at Kazoom.ca, I'll try to see if I can find the link. But i'm pretty sure you need to buy a license or you get a message every time someone tries to upload something.
×
×
  • 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.