![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Full Frontal Lobe Nudity
War Room Member
Join Date: Aug 2009
Location: Knoxville, TN
Posts: 324
Thanks: 114
Thanked 92 Times in 61 Posts
|
For years I have used pages to grab the GET info forwarded from AWeber to insert a name or some other information into a web page dynamically. I recently tried to do that with a custom field passed from AWeber and it's not working.
Not sure why. Here is a typical piece of code I use to grab the name field: PHP Code:
school the lead attends) AWeber passes it like this in the GET: ?custom%20school=osu When I try this code it fails: PHP Code:
PHP Code:
Any help would be greatly appreciated. Kevin |
|
|
|
|
|
|
|
|
#2 |
|
Active Warrior
War Room Member
Join Date: Oct 2009
Posts: 67
Thanks: 6
Thanked 9 Times in 7 Posts
|
I believe it's actually not proper formatting in PHP to have spaces in GET variable. From what I can gather it converts them to '_'.
Try: if(isset($_GET['custom_school'])) { $name = $_GET['custom_school']; } If that doesn't work, I would suggest changing your aweber variable names to something without spaces. hope this helps. |
|
|
|
| The Following User Says Thank You to RichPirate For This Useful Post: |
|
|
#3 |
|
HyperActive Warrior
War Room Member
Join Date: May 2004
Location: Perth, Australia.
Posts: 406
Thanks: 2
Thanked 63 Times in 55 Posts
|
You could do a quick test and see what variables Aweber is passign back to you..
At the top of your thankyou page, insert the following PHP code : echo '<pre>'; print_r($_GET); echo '</pre>'; This will "dump" all the variablers that Aweber is sending back to you and you can see what to extract.. I hope this helps Bruce |
|
♦ Get Indexed Faster, Visit PingMe Now!!, and get a FREE backlink as well!
♦ Get Instant BackLinks To Any Site You want by running your own Blog Farm ♦ Stop Google SideWiki from displaying unfavorable comments on your WordPress Blog. Beta testers needed for Wordpress Plugin : SideWiki Blocker ♦ How I Get 50-150 1-way links per day, everyday : Find out what I do! |
|
|
|
|
| The Following User Says Thank You to Bruce Hearder For This Useful Post: |
|
|
#4 |
|
Warrior Member
Join Date: Oct 2009
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
why did u use spaces? you cannot use spaces between the get variables..
replace them with _ or any other character.. |
|
|
|
| The Following User Says Thank You to ermac2014 For This Useful Post: |
|
|
#5 |
|
Full Frontal Lobe Nudity
War Room Member
Join Date: Aug 2009
Location: Knoxville, TN
Posts: 324
Thanks: 114
Thanked 92 Times in 61 Posts
|
Aweber puts the space there, though the space is converted to %20 in the URL. I can't change it. Whatever I name the custom variable (school for example) Aweber precedes it with "custom " so it becomes custom%20school.
|
|
|
|
|
|
|
|
|
#6 |
|
Warrior Member
War Room Member
Join Date: Aug 2009
Posts: 10
Thanks: 1
Thanked 1 Time in 1 Post
|
$_GET['custom_VARIABLE'];
Worked for me. Good Luck Jim |
|
|
|
| The Following User Says Thank You to blkfin For This Useful Post: |
|
|
#7 |
|
Warrior Member
Join Date: Nov 2009
Posts: 20
Thanks: 0
Thanked 4 Times in 3 Posts
|
Hi Kevin.
RichPirate and blkfin are correct - PHP will replace the "%20" with an underscore "_" When I requested: ....?test=1&custom%20test=2 ...and I dumped $_GET, this is what I get: Array ( [test] => 1 [custom_test] => 2 ) HTH -- Mike Smith No sig yet! |
|
|
|
| The Following User Says Thank You to Mike P Smith For This Useful Post: |
![]() |
|
| Tags |
| aweber, custom, field, grabbing |
| Thread Tools | |
|
|
![]() |