-
Posts
289 -
Joined
-
Last visited
Everything posted by JKG
-
yes! thanks for sticking with me cags, much appreciated marked as solved.
-
hmm, that doesnt work at all.... thanks for your help Cags.
-
so using RewriteCond old url rewriterule new url ? have you any idea why this is occurring, i have never come across it before...
-
hi cags, thanks for your reply. i tried it, and it does strip the url of the query string, but also displays a question mark at the end of the url, which is not ideal. i tried just putting a space but it went back to what it was doing before. any other ideas? thanks!
-
try <?php echo "<img src='".$imagelink."' width='150' height='70'/>"; ?>
-
wont slow it down. http://www.generateit.net/mod-rewrite/ should help
-
hey, i have a site which runs this as its rewrite, it works: RewriteEngine on RewriteCond %{HTTP_HOST} ^site.com$ [OR] RewriteCond %{HTTP_HOST} ^www.site.com$ RewriteRule ^/?$ "http\:\/\/www\.site\.com\/Sitename\-homepage" [R=301] RewriteRule ^Sitename-([^/]*)$ /index.php?page=$1 [L] i want to now add a redirect to this, this works but appends the orginal query string, how do i tell it not to do that? Redirect 301 /Sitename-home http://www.site.com/Sitename-homepage this rule redirects to: http://www.site.com/Sitename-homepage?page=home which isnt what i want. is there an append thats the opposite of [QSA]? thanks.
-
for how long? for ever? cron job? would put quite a strain on the server...
-
facebook clone... right.... why are you running 3 sql queries? if you get 0.01% of the traffic facebook gets you will be bombing out your mysql server. you getting an error?
-
str_replace('£', '£', $row['film_price']); or $film_price = $row['film_price']; str_replace('£', '£', $film_price);
-
<? $film_price = '£1000'; echo str_replace('£', '£', $film_price); //prints £1000 ?> get rid of the arrays.
-
hey, i have implemented the AutoSuggest v2.1.3 solution found at: http://www.brandspankingnew.net/archive/2007/02/ajax_auto_suggest_v2.html It works a treat. Could any one help me hide the autosuggest by using the built in function: clearSuggestions(); i have tried allsorts and failed! thanks.
-
use a for statement, on a multiple of 5? http://stackoverflow.com/questions/1500675/for-loop-do-action-every-5-results
-
for starters, you are in development so comment out error_reporting(0);
-
can you try to explain better? sorry, i dont follow...
-
Need good ideas regarding security on single page
JKG replied to xwishmasterx's topic in PHP Coding Help
unless you password protected with a little script and gave the user a password thats only valid once? shouldnt be too hard to do. -
best to use jquery for this. http://resourcesmix.info/jquery-plugin-form-to-wizard/ is one solution i have used before that worked well.
-
Need good ideas regarding security on single page
JKG replied to xwishmasterx's topic in PHP Coding Help
my answer was based on the OP asking for 'a simple way'. whats the stake here? is it just to stop the standard user from refreshing twice, or is it total lock down? doing it by ip/cookie/session would be the simplest, but anyone with slight knowledge would find a way... if its really important, 'a simple way' wont cut it. -
I think I go a $page_contents problem, please help
JKG replied to CraftHell's topic in PHP Coding Help
what application are you using? or did you write this code? -
Need good ideas regarding security on single page
JKG replied to xwishmasterx's topic in PHP Coding Help
you could let the page load once per ip? save the ip in a session? -
Converting guestbook entry newlines to html <br /> tags
JKG replied to tommybfisher's topic in PHP Coding Help
you could try nl2br() or a visual editor. ckeditor is the best in my opinion. -
is it possible to post php variable with javascript
JKG replied to Lisa23's topic in PHP Coding Help
var ajaxDisplay10 = document.getElementById('<?php echo $urlfid ?>'); javascript and php are not the same language! here you are injecting the javascript with a php variable, you need the php tags. -
is it possible to post php variable with javascript
JKG replied to Lisa23's topic in PHP Coding Help
thats not jquery, thats javascript. to progress look up jquery. (quick def: jquery is a library that make javascript easier. ) and look up what post and get are. (quick def: get takes variable from the url, post takes variable from a form) -
is it possible to post php variable with javascript
JKG replied to Lisa23's topic in PHP Coding Help
POST!! indextest.php should be <?php $urlfid = $_POST['urlfid'] echo $urlfid; ?> if that doesnt work their is something wrong with your javascript. 1) $.post is jquery, make sure thats linked in. 2) also, make sure that you are initialising the jquery properly, bind it to something. a click, page load whatever. 3) also, you cannot just refresh the page open in another window, this is POST, if you want to see it by loading the page separately you will have to save it to a session/cookie or something.