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   
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 tried it again, but it didn't work. Here is the code you gave me in work: [ Register or login to view links on this board. ] if you look at the url it takes you to it will say to= and then blank, if I am correct it should fill in the to= which it doesn't.



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
   
Here is my test page:

[ Register or login to view links on this board.]

The first page (icq_input.php) has the form. Here's the code:

<form method = "post" action = "icq_output.php">
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>


The second page displays the output. Here's the code:

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

<html>
<head>
   <title>Untitled</title>
</head>

<body>
<?php
print "<br><br><br><div align=\"center\">The icq number you entered is:&nbsp;&nbsp;$input1</div>"
?>
</body>
</html>


As you can see, the information is being passed from the form. That leads me to believe the URL you gave me is what's wrong.

I did have to change from using echo to print to get it to display on the page, but that's the only thing I changed.

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
   
Ya it is the url that is the problem. Thanks for the help.



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