Jump to content

redbullmarky

Staff Alumni
  • Posts

    2,863
  • Joined

  • Last visited

    Never

Everything posted by redbullmarky

  1. when you say it doesnt work, do you mean you just get a blank page? or are you judging its failure on the email not arriving? from my experience of emails, ones that provide a link to an IP address, rather than a domain name, often get binned into Junk Mail or flagged as Scams, so it might be worth checking these folders if you havent already. Also, try removing the wordwrap line. there is a slight chance that PHP adding in extra \n could be breaking certain HTML tags in half, therefore rendering some bits useless. For a HTML-formatted email, it's generally unlikely you'll need the wordwrap anyway as most email clients will take care of this. cheers
  2. the code you provided is a little sketchy, but basically it's down to the way you set up your <form> . you need to set the form's action to 'method="post"' and some of the variables here (the ones you want hidden): [code] approval=Yes&select=DESC&select1=ICN&select2=visit_date%20DESC,%20visit_time&m1=&d1=&y1=&m2=&d2=&y2=&client_id=1&tran_id=1503251 [/code] would all be replaced with a hidden field. however, a Right Click/View Source would show up the info, so obviously dont put sensitive stuff here. then, you can safely change the 'action' of the form to simply '/billingMgtList.php' instead of using an onClick even on your submit button. [code] <form name="myform" method="post" action="/billingMgtList.php"> <input type = "hidden" name="approval" value="Yes" /> ...etc... ...etc... ...etc... <input type="submit" name="action" class="sbttn" /> </form> [/code]
  3. a couple of things. we're not here to write your scripts for you, especially if it's schoolwork. if you have some code already that you're having trouble with, post it here. also, please do not demand that your problem be solved "ASAP!! School work!!" as there are many problems here that recieve equal priority.
  4. it maybe worth putting a disclaimer in your contract stating it to the effect that you are not responsible for any action that might be taken. whether it's wrong or not, it could potentially stop them ever saying "my designer did it!" if they get approached. I can't see it being your fault, but still - worth covering your tracks if you're unsure.
  5. from what i can see, you're actually telling it to show the CURRENT date, when you're using: if ($d = date("d)) if ($d = date("m")) etc my guess is that you need to use [url=http://www.php.net/date]date[/url]'s second parameter (a timestamp). not setting the second parameter will make 'date' default to the current time. what time SHOULD it show?
  6. might be one to start here: http://en.wikipedia.org/wiki/List_of_wiki_software#PHP-based It really depends on what you're gonna be using it for. If it's just something very small scale, then TipiWiki is fine and doesnt require a database. However, if it's something larger, then you cant beat [url=http://www.mediawiki.org/wiki/MediaWiki]MediaWiki[/url] for features, security, etc - and apart from its vast size, is very easy to install. cheers
  7. as has been mentioned, and you've acknowledged, the logo needs work - however, the first thing that bugged me was the goooogle ads. Personally I dont like them at all but they serve there place and bring in cash. however, sometimes you need to position them a little better than to throw them right in the middle of your page, pushing your main content out of the way. Overall, the colour scheme is nice enough - however, the layout (taking care of adverts, whitespace, etc) could do with some work. Maybe moving the ads to one side or another? but not right in the middle of your content like that. Cheers Mark
  8. looks interesting, but my "buzz word" siren has gone off and is telling me "uh oh, another chap trying to stake a clame in Web 2.0 like the bloke from Rails or everyone trying to copy myspace and youtube or the people who put AJAX into everything even when it's unnecessary, etc" AJAX is cool enough, and useful in it's required doses, but i'm very sceptical these days of stuff like this. i had a quick look around, but couldnt find a demo? cheers for the link
  9. you do need to be careful though. IMO, $_POST and $_GET are seperate for a reason - so that you get 100% control over what should be read from where. Daniel's example does what $_REQUEST does, but I dont like the idea that someone could come along and drop something in the URL ($_GET) that should be submitted via a form ($_POST). Also from a debugging point of view, as i mentioned before, at least if your look at $_POST and $_GET in your code, you think "ahh, that's coming from the form and that's coming from the URL" whereas with $_REQUEST or the above example, you're kinda stuck.
  10. y'know, it's not TOO bad price wise (although i'm using dollar -> pound conversion and the f***nuts in charge of our country load lots of tax and VAT onto that :( ) but generally, it's not hard here to get most phones of around £200 - £400 (about $380- $750) for free on a 12mth contract (18month at worse). it's pretty swanky. from what i can see, just a single "physical" button on the whole phone. nice. (type in iphone into youtube search - there's one on there that also looks nice but apparently fake or a "concept" model) you lot over there are about 4mths ahead in terms of release, so plenty of time to see the good/bad/ugly reviews before we get it. but if it does what it says on the tin, without any major probs, then i'm all for it. * saving my pennies *
  11. then maybe you'd be kind enough to elaborate a bit more, because to be honest, if you're not even sure where to start or not willing to post some code of where you've gotten up til now, you're probably not ready to replicate smarty anyway.
  12. download smarty and use that?
  13. for those on FF (not sure if FF 1.5/2 is different), until it's resolved, simply hold the Ctrl+Shift keys down and press the + (well, the = key really) and voila - text should increase. Do the same but with the - or 0 (zero) key to put back to normal...
  14. unless you're in the very root of the server, then 'home/www/url.com/dynamicpoll/poll.php' will try and first find a directory called 'home' in the CURRENT directory. try a prepending slash: <? include("[b]/[/b]home/www/url.com/dynamicpoll/poll.php"); ?> failing that, try this [code] <?php echo $_SERVER['DOCUMENT_ROOT']; ?> [/code] and see how much of the full path it provides. then just append the rest to it, such as: [code] <?php include($_SERVER['DOCUMENT_ROOT'] . '/dynamicpoll/poll.php'); ?> [/code] hope that helps
  15. [code] <? if ($something == 1): ?> <p>Hello!</p> <? endif; ?> [/code] dude, if someone doesnt get the question and asks you to clarify, then "i put it plain as day" is not the right response, when you're seeking help...
  16. works for me. the $_SERVER['HTTP_REFERER'] works via hyperlinks, so simply just going to a different address/hitting the back/forward buttom won't have the desired effect as far as i know. I tried the link you provided. I also skipped to http://www.kilbad.com/DEVELOPMENT/ and clicked on the test.php link, and all worked fine. I believe some browsers can be set up to mask the HTTP_REFERER though, so it'd be worth checking whether thats why it's not showing it for you.
  17. if it's only doing it lately, then lowering the resources it needs to run is not the solution - rather, something else is the problem. first off (and this problem has happened to me twice in the past) open up the Control Panel/System and check the available memory. I have had memory fail on me in the past which has grinded things to a near standstill. Secondly, try a thorough cleanup of your system and check your antivirus. Third - have you installed many plugins for Photoshop? There's no real way of giving you a proper answer really as it could be one of millions of things....
  18. yes there was an upgrade yesterday. the annoucement (including a few things to iron out) was pinned to the top of the Questions, Comments & Suggestions main forum. cheers Mark
  19. i suppose it could be quite good, and is not bad at the moment, but i have two problems as soon as i see the homepage: 1, the white links at the top right dont seem to belong to the site as text is bigger than anything else. 2, those Google ads actually make your site look like a "sod the content, click my ads and make me money!" type site, especially as they're right in the middle taking up a huge portion of the page. 3, probably more to do with the end results of CMS's, but there are just far too many links crammed onto the homepage, with no clear seperation to make the different sections stand out.  These days, I personally try and keep links on the homepage quite minimal (normally just the nav and a couple of articles), just so the user is grabbed in straight away. 4, Maybe I'm getting old, but only until fairly recently, I loved small fonts, but coupled with a black background, it makes things even hard to get my head around, especially with the amount of stuff that's actually crammed onto the homepage. So yeah - it's not bad, and much of my problem with the site is personal preference, but I reckon you could do alot more with it, starting with those adverts....
  20. yeah might be worth pointing out that the version of Monaco on the PC I found wasnt monospace, hence why I went for ProggySquare which is.
  21. Monaco (on the Mac) and either ProggySquare or straightforward Courier New on the PC. ProggySquare you can get for free [url=http://www.proggyfonts.com/index.php?menu=download]here[/url] and is a pretty decent font for coding. Monaco is a commercial font (I think by Apple) that generally comes prepacked with Mac OSX
  22. $_POST and $_GET too. aside from the security, it makes it easier from a debugging point of view as I know exactly where i'm extracting the variables from.
  23. as has been mentioned, short tags (and also the [url=http://uk.php.net/manual/en/control-structures.alternative-syntax.php]alternative syntax for control structures[/url]) are very useful for templates where you're using PHP as the "template engine" rather than something like smarty. With the popularity of Rails, Smarty, etc, I personally dont think they will actually get rid of them at all, even after PHP6. Most hosts have it on by default, and new downloads/installations of PHP have it turned on by default, too. Ok, so it's not much harder to type in the 'php' bit or 'php echo', but even still - it does keep templates that extra bit tidier.
  24. there's already one that does that. your < ?php tags can go inside [ code] [ /code] tags (obviously remove the spaces) which will pop the content in a box seperate from the posts content. that what you mean? cheers Mark
  25. you could always try [url=http://www.sourceforge.net]sourceforge[/url]
×
×
  • 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.