Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-22-2010, 04:09 PM   #1
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Ajax wizards in here

Ok so I was using the GET method up until I realized I can't send paragraphs of textarea data, so I converted it to POST, but it's still cutting my paragraphs off??

Sorry this doesn't paste well here.

Quote:
function readPage(keyPage, jsNum, aNum)
{
var pageContent;
if(window.XMLHttpRequest)
{
pageContent = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
pageContent = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
alert("Browser doesn\'t support AJAX");
}

if(aNum==1)
{
var delimiter = document.getElementById('delimiter').value;
var dump = document.getElementById('dump').value;
var params = 'delimiter=' + delimiter + '&dump=' + dump;
}
pageContent.onreadystatechange = StateChange;
pageContent.open('POST', keyPage, true);
pageContent.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
pageContent.send(params);

function StateChange()
{
var doLoading="<img src=ajax.gif>";
if(pageContent.readyState==1 || pageContent.readyState==2 || pageContent.readyState==3)
{
document.getElementById('ajaxCol'+jsNum).innerHTML = doLoading;
}
if(pageContent.readyState==4)
{
document.getElementById('ajaxCol'+jsNum).innerHTML = pageContent.responseText;
}
}
}
Is something out of place or what?
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2010, 04:13 PM   #2
CunningStunt
Confirmed User
 
CunningStunt's Avatar
 
Industry Role:
Join Date: Aug 2006
Posts: 5,594
CunningStunt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2010, 04:14 PM   #3
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
jQuery man, jQuery ;)

The sooner you start using it, the sooner the headaches disappear.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2010, 04:15 PM   #4
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Son of a bitch.

What's jquery got to do with this though? That shit looks way out of wack, like my headaches would disappear and migraines begin lol. I see a lot of people in google have found the solution by converting to POST, but mine isn't working.
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 02-22-2010 at 04:29 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2010, 05:25 PM   #5
digitaldivas
..I Heart Cannibal Corpse
 
digitaldivas's Avatar
 
Industry Role:
Join Date: Sep 2007
Location: California
Posts: 4,328
...or dreamweaver CS4, integrates ajax beautifully
__________________
...
digitaldivas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2010, 09:55 PM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
that sure is messy code compared to a few lines of jquery
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2010, 10:19 PM   #7
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Didn't test it at all... and you need to load the jquery libraries.
Code:
Jquery:

<script type="text/javascript">
	$("#isLoading").hide();
	$(document).ready(
        function(keyPage, jsNum, aNum) {
		$("#isLoading").show();
                $.post("/PHP_FILE_TO_CALL.php", { delimiter: $("#delimiter").val(), dump: $("#dump").val() },
                function(response){
			$("#ajaxCol"+jsNum).html(unescape(response));
                });
		$("#isLoading").hide();
        });
    };
</script>

Then just do like in the html:
<span id="isLoading"><img src=ajax.gif></span>

Last edited by Alky; 02-22-2010 at 10:21 PM..
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2010, 11:59 PM   #8
Azlord
Confirmed User
 
Azlord's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
It's already been said and solved, but jq is the way to go forsure. There are some nice new ajax features in the newest version (1.4).
Azlord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 11:38 AM   #9
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Best. Forum. Evar.

Is it safe to load the libraries from Google? Hopefully they aren't changing the paths any time soon..

Edit: fuck, need your own API key to load from Google? This jquery shit is looking to be too much of a hassle, if other people are going to be using this then they're going to have to have these libraries installed and shit? Do most servers have this already?
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 02-23-2010 at 11:45 AM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 11:48 AM   #10
SmellyNose
Confirmed User
 
SmellyNose's Avatar
 
Industry Role:
Join Date: Aug 2009
Location: me at smellynose.com
Posts: 206
jQuery is amazing - Use it immediately!

Get jQuery from jquery.com, don't include it from Google.
__________________
I'm a PHP developer - 594086663 - [email protected]
SmellyNose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 11:51 AM   #11
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Jakez View Post
Best. Forum. Evar.

Is it safe to load the libraries from Google? Hopefully they aren't changing the paths any time soon..

Edit: fuck, need your own API key to load from Google? This jquery shit is looking to be too much of a hassle, if other people are going to be using this then they're going to have to have these libraries installed and shit? Do most servers have this already?
you dont need an api key for jquery.

just direct link to the library, or direct link to it off of jquery.com

http://jet.li/twitter/

this is something i did that uses some jquery to load via search.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 11:54 AM   #12
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Or Prototype :P I'm a big fan of being able to create classes... although I will admit jQuery is pulling ahead in the race. If jQuery UI wasn't so bloated I'd consider switching faster.
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 12:04 PM   #13
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
I don't see any good reasons not to load from Google. People are most likely going to have it cached already..

This jQuery shit is fucking UGLY man.. why does it have to look like this wtf lol.
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 02-23-2010 at 12:05 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 12:08 PM   #14
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Quote:
Originally Posted by Jakez View Post
I don't see any good reasons not to load from Google. People are most likely going to have it cached already..

This jQuery shit is fucking UGLY man.. why does it have to look like this wtf lol.
one reason not to load it from google is you dont have to depend on them....

i think my code is way more sexy then what you originally posted....
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 12:39 PM   #15
CS-Jay
Confirmed User
 
CS-Jay's Avatar
 
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
Quote:
Originally Posted by Alky View Post
one reason not to load it from google is you dont have to depend on them....

i think my code is way more sexy then what you originally posted....
I have to agree, Alky's code was way more sexy. Just use jquery, and be a happy camper.
__________________
I do stuff - aIm CS_Jay_D
CS-Jay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 12:48 PM   #16
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Ok I'm reading a bunch of stuff trying to figure all this jQuery mess out. Even though most of the tutorials online expect you to know a ton of shit already, but first..

How do I even call what you gave me within my HTML form?
There's the
Quote:
function(keyPage, jsNum, aNum)
But no function name to reference? lol

Should I remove the .hide()'s and use something like
Quote:
$("form#theName").show();
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 02-23-2010 at 12:57 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 01:01 PM   #17
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
lookup .submit
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 01:13 PM   #18
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
Quote:
Originally Posted by CunningStunt View Post
hehe where is he now ?!?
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 02:14 PM   #19
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Quote:
Originally Posted by seeandsee View Post
hehe where is he now ?!?
Who the hell is that? Is it supposed to be some kind of jheri curl - jquery joke? lol
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 03:56 PM   #20
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by Jakez View Post
Ok I'm reading a bunch of stuff trying to figure all this jQuery mess out. Even though most of the tutorials online expect you to know a ton of shit already, but first..

How do I even call what you gave me within my HTML form?
There's the

But no function name to reference? lol

Should I remove the .hide()'s and use something like
What is it exactly you're trying to do?

If it's a form submit and the div is to show based on submit response, why not use jQuery thickbox. There's got to be one of those examples that fits your needs (scroll down to the last AJAX example)? And damn simple to boot.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2010, 03:58 PM   #21
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by BestXXXPorn View Post
Or Prototype :P I'm a big fan of being able to create classes... although I will admit jQuery is pulling ahead in the race. If jQuery UI wasn't so bloated I'd consider switching faster.
I was Prototype all the way till around 10 months ago I stumbled on jQuery and was fully sold. Especially its ability to interact with PHP scripts via AJAX using JSON arrays is just heaven.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 05:01 PM   #22
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Ok I managed to get something extremely simplified so that even I can understand it and someone can hopefully understand what I'm trying to do lol. Only one problem I have. I want the jQuery to just display whatever the PHP sends back to it, instead of having to go through all the json crap and having the jQuery handle what gets shown. Ex (I use tabs so the indents are gone sry):

The js/jquery:
Quote:
<script type="text/javascript">
function readPage(keyPage, jsNum, aNum)
{
if(aNum==1)
{
$(document).ready(function()
{
$.post("ajaxwork.php?a=import_videos", $("#target").serialize(),
function(data){$("#ajaxCol"+jsNum).html(data.delim iter);}, "json");
});
}
}
</script>
The HTML:
Quote:
<form id="target" action="javascript:readPage('page.php?a=do_this', 1, 1);">
Delimiter: <input name="delimiter" value="|" size=1><br>
<input type=submit value="Next">
</form>

<div id="ajaxCol1" style="display:inline;"></div>
And the PHP:
Quote:
<?php
if($_GET['a']=="do_this")
{
$return_json = "{'delimiter':'".$_POST['delimiter']."'}";
echo $return_json;
}
?>
Should I just change the:
$return_json = "{'delimiter':'".$_POST['delimiter']."'}";

and make it send all the HTML/etc I want to display? Like:
$everything="<b>blah blah blah ".$_POST['delimiter']."</b>";
$return_json = "{'everything':'$everything'}";

Edit: it works^ I guess I will just do it that way, but idk if it's the wrong way or it doesn't matter or what. I just don't want to handle all the printing and HTML in jquery because it's really going to clutter a lot of shit up. And having to rename all the $_POST's is just stupid imo I don't really understand the whole json thing.
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 02-24-2010 at 05:15 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 05:40 PM   #23
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
You don't have to use json

Last edited by nation-x; 02-24-2010 at 05:44 PM..
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 05:46 PM   #24
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Ok I replaced the <input> field with a textarea and it won't print anything if I have more than 1 line of text inside the textarea... what the faaaaaaack!
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 05:52 PM   #25
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
below is your function changed to return html
Code:
$.post("ajaxwork.php?a=import_videos", $("#target").serialize(),
   function(data){
     $("#ajaxCol"+jsNum).html(data);
   }, "html");
Quote:
Originally Posted by Jakez
Ok I replaced the <input> field with a textarea and it won't print anything if I have more than 1 line of text inside the textarea... what the faaaaaaack!
try using
Code:
echo htmlentities($return_json);

Last edited by nation-x; 02-24-2010 at 05:57 PM..
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 06:36 PM   #26
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Changing the json to html makes it show nothing, no matter what I try to pass to it..

Edit: json_encode() seems to do the trick.

Edit 2: Well I finally got it to work with the multiple textarea lines, but now I'm back to the original problem where ajax wouldn't POST a large paragraph of text, and this jquery is passing even less text through, this is ridiculous..
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 02-24-2010 at 06:47 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 07:01 PM   #27
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Ok it's only returning a limited amount of text because of ' (single quotes) within the text.

I already have json_encode(nl2br($_POST['text_dump'])) what else? htmlentities and htmlspecialchars aren't helping.
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 07:31 PM   #28
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Here we go
json_encode(nl2br(str_replace("'","& #39;",$_POST['text_dump'])))

I just wanted to be able to send an FLV dump of text via ajax and I had to go through all this crap lol.
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 07:47 PM   #29
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
I made you an example...

http://lifestyleamateurs.com/test.php

this is the php script I am posting to.

Code:
<?php

$galleries = preg_split("/\r?\n|\r/", $_POST['textarea']);

foreach($galleries as $gallery) {
	list($url, $description) = explode('|', $gallery);
	echo "<a href='{$url}'>{$description}</a><br>\n";
}
?>
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2010, 07:58 PM   #30
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
btw... if you are going to be working with Ajax I highly recommend firebug... it's really your best tool for debugging ajax calls.
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-25-2010, 02:47 AM   #31
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by Jakez View Post
Here we go
json_encode(nl2br(str_replace("'","& #39;",$_POST['text_dump'])))

I just wanted to be able to send an FLV dump of text via ajax and I had to go through all this crap lol.
You shouldn't have to worry about that - that's an horrendous way to 'escape' text.
Your server doesn't have magic_quote or some abomination on does it ?

If you're looking to secure text for a database insert, mysql_real_escape_string()
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-25-2010, 02:51 AM   #32
CunningStunt
Confirmed User
 
CunningStunt's Avatar
 
Industry Role:
Join Date: Aug 2006
Posts: 5,594
Quote:
Originally Posted by seeandsee View Post
hehe where is he now ?!?
"Considering his options" apparently (= burnt out and finished)

Bump for the code monkeys.
CunningStunt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-25-2010, 05:28 AM   #33
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by quantum-x View Post
magic_quote or some abomination on does it ?
thx for the laugh this morning I pee my pants over the fact that so many large hosts have magic_quotes_gpc enabled by default.
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-25-2010, 07:32 AM   #34
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
now i know why babelogger is so horribly coded ;)
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-25-2010, 10:55 AM   #35
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Quote:
Originally Posted by nation-x View Post
I made you an example...

http://lifestyleamateurs.com/test.php

this is the php script I am posting to.

Code:
<?php

$galleries = preg_split("/\r?\n|\r/", $_POST['textarea']);

foreach($galleries as $gallery) {
	list($url, $description) = explode('|', $gallery);
	echo "<a href='{$url}'>{$description}</a><br>\n";
}
?>
THAT's what I'm talkin' about! lol. Using the html instead of json wasn't working before but the example you made is perfect.

And yeah certifiedhosting did have magic quotes on, just turned it off. I also installed firebug a couple days ago but haven't restarted firefox yet since I have like 30 damn tabs open.

Thanks a million, hopefully I won't have to come back here and 'bug' ya'll again lol.
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-25-2010, 12:26 PM   #36
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by Jakez View Post
THAT's what I'm talkin' about! lol. Using the html instead of json wasn't working before but the example you made is perfect.

And yeah certifiedhosting did have magic quotes on, just turned it off. I also installed firebug a couple days ago but haven't restarted firefox yet since I have like 30 damn tabs open.

Thanks a million, hopefully I won't have to come back here and 'bug' ya'll again lol.
It's cool... I sent you an icq, btw.
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.