Putting stuff in links

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Putting stuff in links
Othic
CZ Super Newbie
Othic has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
I was just wondering how you would put information into links. This one would send a message to the ICQ message to whatever ICQ number you entered (or well what it is supposed to do). If anyone could help me with this thanks. EX:

<form method = "post"
      action = "index.php">
<input type = "text"
       name = "input1"
       value = "">
<input type = "submit">
</form>
<a href="http://wwp.icq.com/scripts/search.dll?to=<?$input1?>"> Click Here </a>



Back to top Reply with quote
#2   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   


I was just wondering how you would put information into links.


Not sure what you're asking for here. Are you trying to create a form to do something? What is the link for?

Kelly



Back to top Reply with quote
#3   
Othic
CZ Super Newbie
Othic has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
The link with an icq number will add the person to your buddy list. The form would put the ICQ number into the link, but I don't how you would do that because what I had tried to do that in that code I posted doesn't work. So thats why I was asking how you would put information from a textbox into a link.



Back to top Reply with quote
#4   
Othic
CZ Super Newbie
Othic has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
Oh sorry I forgot to say that I was using PHP. icon_wink.gif



Back to top Reply with quote
#5   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
First, you have both a submit button and a link. Which one is supposed to actually submit the ICQ number? Second, how does the link know "who's" icq list to add the number to? That link looks to me like it would be more likely to search for an icq number.

In any case, if you want to submit pass information from a form, you need to do something like this:

<?php
$input1=$_POST ['icq_num'];
?>

<form method = "post" action = "http://wwp.icq.com/scripts/search.dll?to=<?php $input1 ?>">
Enter your icq number<br/>
<input name="icq_num" type="text" size="20" maxlength="20" /><br/>
<input type = "submit" value="Add Me To Your List">
</form>


Kelly


Back to top Reply with quote
#6   
Othic
CZ Super Newbie
Othic has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
Sorry I have posted back. I tested it though and it doesn't quite work icon_cry.gif It takes you to the link, but it doesn't fill in what you entered, so with the icq one it would take you to the link, but the "to=" at the end would be empty. Any idea how to fix this? Thanks for the help



Back to top Reply with quote
#7   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
Well alright!! WTG..glad it worked!

Kelly



Back to top Reply with quote
#8   
Othic
CZ Super Newbie
Othic has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
What? I edited my post, you must have posted just before I tested it correctly.



Back to top Reply with quote
#9   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
Ahhhhhhhhh ok..just a little quick on the draw there I guess.

My question is, are you sure that's the correct URL? Every time I tested it, it took me to ICQ's search page. How would it know WHO's ICQ list to add the user to?

I tried to see if I could find any scripts to do what you're asking that were already made. But everything I could find, the homepages were down. I'll do a little more digging.

Kelly



Back to top Reply with quote
#10   
Othic
CZ Super Newbie
Othic has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
Ill try it again with a different ICQ number. Thanks for all the help already.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum