WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Prefilling Add a Link Form
By Passing Variables in URL

Version: 3.13
printPrint


Prefilling Add a Link Form
eeyipes
Member

Usergroup: Customer
Joined: Nov 12, 2004
Total Topics: 18
Total Posts: 32
Posted 02/21/05 - 08:36 PM:
quote post
#1
I would like to pass catid, aliased cat id and a url address value through a url link to prefill these fields in the add a link form - I've been fiddling with it for a while but can't seem to get it. The url with the variables I've been trying goes like this

http://www.mysite.com/links/suggest.php?action=ad...

The CatID gets passed but not the others - are the variable names right? Or do I need to make changes to the form so it can read the url variables?
mrowton
Forum Regular
Avatar

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 59
Total Posts: 189

Last Blog:

Posted 02/21/05 - 09:15 PM:
quote post
#2
I don't use alias in my templates so I can't really test it, but it looks like &filled=1 helps.

/suggest.php?action=addlink&catid=1&aliasids=2&url=http://www.test.com&filled=1

http://www.packetsource.com/
Directory of Security Papers
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6022
Posted 02/21/05 - 11:03 PM:
quote post
#3
You'd have to change
$blanklink = new onelink('blank', 'blank');
to
$blanklink = new onelink('new', 'new');
in suggest.php.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
eeyipes
Member

Usergroup: Customer
Joined: Nov 12, 2004
Total Topics: 18
Total Posts: 32
Posted 02/22/05 - 07:24 AM:
quote post
#4
Thank you! For anyone who might need to know, I needed to use &aliasids[] in the url instead of &aliasids . The filled=1 did the trick. grin
mrowton
Forum Regular
Avatar

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 59
Total Posts: 189

Last Blog:

Posted 02/22/05 - 03:08 PM:
quote post
#5
Is this one of those weird brain puzzles that you'll never use? Or did you think of some trick that you'd like to share? smiling face

http://www.packetsource.com/
Directory of Security Papers
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.