![]() | | ||||||||
| | #1 |
| Full Frontal Lobe Nudity War Room Member Join Date: Aug 2009 Location: Knoxville, TN
Posts: 912
Thanks: 519
Thanked 492 Times in 205 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: 88
Thanks: 8
Thanked 10 Times in 8 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. |
| | |
| | #3 |
| Advanced Warrior War Room Member Join Date: May 2004 Location: Perth, Australia.
Posts: 717
Thanks: 4
Thanked 182 Times in 138 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 Your Backlinks indexed quicker at BackLinks2RSS Create Full Text Feeds from Partial RSS Feeds at FeedExpander.com. See the WarriorForum post about it here | |
| | |
| | #4 |
| Full Frontal Lobe Nudity War Room Member Join Date: Aug 2009 Location: Knoxville, TN
Posts: 912
Thanks: 519
Thanked 492 Times in 205 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.
|
| | |
| | |
| | #5 |
| Doing Internet Long Time War Room Member Join Date: Aug 2009 Location: Earth
Posts: 83
Thanks: 21
Thanked 12 Times in 12 Posts
|
$_GET['custom_VARIABLE']; Worked for me. Good Luck Jim |
| | |
| | #6 |
| Active Warrior War Room Member Join Date: Nov 2009 Location: Charlotte, NC, USA
Posts: 30
Thanks: 2
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! |
| | |
| | #7 | |
| HyperActive Warrior War Room Member Join Date: Oct 2011 Location: Wellington, New Zealand
Posts: 19
Thanks: 3
Thanked 1 Time in 1 Post
| Quote:
| |
| | ||
| | |
![]() |
|
| Tags |
| aweber, custom, field, grabbing |
| Thread Tools | |
| |
![]() |