General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 26th, 2003, 03:17 AM
tim tim is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 62 tim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 9 sec
Reputation Power: 7
Send a message via ICQ to tim
Receiving Input Type Image's Posting values

<input type=image name=DoAction value=\"mybuttonvalue\" src=\"images/butSubscribe.gif\"class=\"button1\">


How do you receive the name attribute of an input type image posting...For example $DoAction == "mybuttonvalue"

I understand that PHP receives as $DoAction_x or $DoAction_y as the coordinates of the image. I can get these values but i want the value string "mybuttonvalue" to be received. I can't get this.
__________________
Beginner

Reply With Quote
  #2  
Old June 26th, 2003, 10:39 AM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Try this out with the following code.
PHP Code:
<pre>
<?
php
  
if ( (int)$runform ) {
    print 
"\$doaction_x coordinate : " $_GET['doaction_x'] . "<br>";
    print 
"\$doaction_y coordinate : " $_GET['doaction_y'] . "<br>";
  }
?>

<form name="test" method="get" action="index.php">
  <input type="hidden" name="runform" value="1">
  <input type="image" name="doaction" value="mybuttonvalue" src="butSubscribe.gif">
</form>
</pre> 
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Receiving Input Type Image's Posting values


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway