Op 10 jul 2010, om 16:09 heeft Anton Staartjes het volgende geschreven:
> sorry the correct example is: > > <?php > if( isset( $_POST[ 'images/arrow.gif' ])) > { > echo $_POST['tekst']; > } > else{ > ?> > <form action="" method="post"> > <input name="tekst" id="tekst" type="text" /> > <input name="SUBMIT" id="SUBMIT" type="image" src="images/ > arrow.gif" /> > > </form> > <?php > } > ?> > > > > Op 10 jul 2010, om 15:57 heeft Anton Staartjes het volgende > geschreven: > >> hi steve >> >> change the name of the $_POST['submit'] variable in another $_POST >> variable, for instance the one you want to read, an example: >> >> <?php >> if( isset( $_POST[ 'teks' ])) >> { >> echo $_POST['tekst']; >> } >> else{ >> ?> >> <form action="" method="post"> >> <input name="tekst" id="tekst" type="text" /> >> <input name="SUBMIT" type="image" src="images/arrow.gif" /> >> >> </form> >> <?php >> >> >> hope this helps, >> >> greetings >> >> anton >> >> >> Op 7 jul 2010, om 23:01 heeft Rev. Steve Willis het volgende >> geschreven: >> >>> Hi, all! >>> >>> I have a PHP page with a single-search-field form with a submit >>> button next to it. The page self-validates/processes the search >>> field's text. >>> >>> When the form is used, the page traps the form's info using the >>> following statement: >>> >>> if( isset( $_POST[ "SUBMIT" ])) >>> { >>> // performs the search with the info entered into the search field >>> } >>> >>> The HTML button code is: >>> >>> <input name="SUBMIT" id="SUBMIT" type="submit" value="GO" /> >>> >>> This combo works perfectly. However, when I try to change the >>> button definition to the following, the form fails: >>> >>> <input name="SUBMIT" id="SUBMIT" type="image" src="../_images/ >>> icons/nav/view.png" class="small_icon" /> >>> >>> I read in w3schools.com's HTML reference that an <INPUT> tag of >>> type="image" is supposed to be functionally identical to an >>> <INPUT> tag of type="submit". >>> Others have pointed me at a couple of sites : >>> >>> http://www.webdevelopersnotes.com/tips/html/using_an_image_as_a_submit_button.php3 >>> >>> http://www.echoecho.com/htmlforms14.htm >>> >>> but neither of them were helpful (none of their techniques worked). >>> >>> So what am I missing here? >>> >>> PHP 5.3/HTML5/CSS3 running on MacOSX 10.6.4 >>> >>> Thanks! >>> >>> Steve >>> -- >>> Rev. Steve Willis >>> Director of Software Development >>> Life Christian University >>> P.O. Box 272360 >>> Tampa, Fl 33688 >>> (520) 891-3721 >>> >>> >>> CONFIDENTIALITY NOTICE: This e-mail message, including any >>> attachments, is for the sole use of the intended recipient(s) and >>> may contain confidential and privileged information. Any >>> unauthorized review, use, disclosure or distribution is >>> prohibited. If you are not the intended recipient, please contact >>> the sender by reply e-mail and destroy all copies of the original >>> message. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "WebWeavers" group. >>> To post to this group, send email to webweavers@googlegroups.com. >>> To unsubscribe from this group, send email to webweavers+unsubscribe@googlegroups.com >>> . >>> For more options, visit this group at http://groups.google.com/group/webweavers?hl=en >>> . >>> >>> -- >>> This list is a free service of LassoSoft: http://www.LassoSoft.com/ >>> Search the list archives: http://www.ListSearch.com/GoLive/Browse/ >>> Manage your subscription: http://www.ListSearch.com/GoLive/ >>> >>> >> >> >> -- >> This list is a free service of LassoSoft: http://www.LassoSoft.com/ >> Search the list archives: http://www.ListSearch.com/GoLive/Browse/ >> Manage your subscription: http://www.ListSearch.com/GoLive/ >> >> > > > -- > This list is a free service of LassoSoft: http://www.LassoSoft.com/ > Search the list archives: http://www.ListSearch.com/GoLive/Browse/ > Manage your subscription: http://www.ListSearch.com/GoLive/ > >
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/GoLive/Browse/ Manage your subscription: http://www.ListSearch.com/GoLive/
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!