Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-2007, 02:34 PM
holla22 holla22 is offline
Newbie
 
Join Date: Jul 2007
Posts: 2
Rep Power: 0
holla22 is on a distinguished road
Question Posting a link to a text field

I'm looking for a easy way that i can make a link that when you click on it, it posts a variable or a number value into a text field. All of this should be done in php.

Do any of you people know how to do this?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-16-2007, 03:23 PM
John's Avatar   
John John is online now
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,764
Last Blog:
Passwords
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default

Links cannot 'POST' variables, only forms can. However you can use a link to allow the text field to 'GET' a variable. Do you specifically need to use post?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-16-2007, 05:18 PM
holla22 holla22 is offline
Newbie
 
Join Date: Jul 2007
Posts: 2
Rep Power: 0
holla22 is on a distinguished road
Default

What i'm trying to do is to have an image map. On the image is blocks with numbers and when you click on one of the blocks it should open a popup and then put that number in the text box on the popup form. You can have a look at this url: Tax Invest Properties
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-19-2007, 06:16 PM
elle elle is offline
Newbie
 
Join Date: May 2007
Posts: 10
Rep Power: 0
elle is on a distinguished road
Default

It should be a piece of cake.

Javascript solution inside popup:

Code:
<textarea id="Message" name="Message" rows="10" cols="10"></textarea>

<script type="text/javascript" language="JavaScript">
<!--
	document.getElementById('Message').value="NUMBER";
-->
</script>
or when generating popup write it directly to textarea from PHP script

Code:
<textarea id="Message" name="Message" rows="10" cols="10">
<?php
echo $number_id; /* or via $_GET
?>
</textarea>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this a link farm? TcM Hosting and Registrars 2 05-24-2007 03:35 PM
Text Link ad Networks Lop Marketing 15 05-24-2007 03:12 PM
HTML Basic Formatting clookid Tutorials 14 03-06-2007 03:10 PM
Generate text with transparent background AfTriX PHP Tutorials 1 01-08-2007 02:13 AM
Link exchanges Kaabi Search Engine Optimization 2 08-03-2006 09:34 PM


All times are GMT -5. The time now is 01:49 PM.

Contest Stats

neerlin ........
satrian ........
jackluxford ........
=At ........
Xav ........
MeTh0Dz|Reb0rn ........
gamiR ........
chili5 ........
liljp617 ........
Fred@eisfi ........

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads