View Single Post

  #7 (permalink)  
Old 03-25-2005
Ike
 
Posts: n/a
Default Re: isset($_POST['submit']) not true


"Kimmo Laine" <eternal.erectionN0.5P@Mgmail.com> wrote in message
news:d204kq$iou$1@phys-news1.kolumbus.fi...
> It places a form element called "submit" on your form, which you then

later
> check in the code to see if it was sent. Without the submit button it

never
> will be sent to server unless you have something to replace it with.
>
> One thing I'd like to say that it's not generally a good idea to replace

the
> submit button with a javascript/link. Some people don't use javascript and
> therefor they're unable to access your page if it relys on javascript. I
> simply can't believe your situation really requires replacing the button
> with a link until you explain why. I mean with css you can modify the
> appearance of a button to look anything you like, even a link. Still not
> satisfied? It can be an image as well... So why not? What's with the link?
>
>


I need to make the page appear exactly the same as a java applet which
resides in it. Therefore, I took out the botton images from the look and
feel package so that the page appears exactly like the applet. Enclosed
below is the page as rendered ( I assume this is what you are asking, yes?)
and the css file that it requires to render the buttons:

<html>
<head>
<title>GGForm Demo</title>

<LINK rel="stylesheet" type="text/css" href="lstyle.css">
<STYLE type="text/css">
a:hover{ color:#555555; }
</STYLE>
</head>

<body link="#777777" alink="#555555" vlink="#777777">

<table align="center" cellpadding=5 style="border:1px solid #CCCCCC;">
<tr><td>

<label class="label" for="">Grip UPs System</label><br><br>
<br><br><br>
<form name="leads" id="leads" action="/leads.php" method="POST"
style="margin:0">
<input type="hidden" name="uniqueId" id="uniqueId" class="text">
<input type="hidden" name="upcardkey" id="upcardkey" class="text">
<label class="selectlabel" for="associatekey">Associate serving this
customer</label><br>
<select name="associatekey" id="associatekey" size="1" class="select">
<option value="6">chip</option>
<option value="4">chris55</option>
<option value="7">dave</option>
<option value="3">daw91</option>
<option value="1">jol36</option>
<option value="5">rjl10</option>
<option value="2">rvince</option>
<option value="8">tom</option>
</select><br><br>

<input type="hidden" name="date" id="date" class="text">
<input type="hidden" name="time" id="time" class="text">
<label class="textlabel" for="sensor"
onClick="forms['leads'].sensor.select();">Sensor</label><br>
<input type="text" name="sensor" ..id="sensor" size="3" MAXLENGTH="3"
class="text"><br><br>

<label class="textlabel" for="heads"
onClick="forms['leads'].heads.select();">Number of persons in this
party</label><br>
<input type="text" name="heads" ..id="heads" size="3" MAXLENGTH="3"
class="text"><br><br>

<input type="hidden" name="upskey" id="upskey" class="text">
<label class="selectlabel" for="howdidyouhear">How did you hear about our
company?</label><br>
<select name="howdidyouhear" id="howdidyouhear" size="1" class="select">
<option value="12"> hf membership list 2004</option>
<option value="3">cold call</option>
<option value="11">distributor</option>
<option value="6">home builders</option>
<option value="10">justin</option>
<option value="1">market-high point</option>
<option value="8">mortgage companies</option>
<option value="9">other</option>
<option value="5">phone up</option>
<option value="2">pre-market-high point</option>
<option value="7">real estate</option>
<option value="4">referral</option>
</select><br><br>

<div class="hbuttons">
<a href="javascript:document.forms['leads'].reset();" value="Reset Form"
class="button" >Reset Form</a>
<a href="javascript:document.forms['leads'].submit();" class="button"
>Submit Form</a>

</form>
</div>
<div style="clear: left;"></div>

</td></tr></table>
</body></html>

//lsytle.css:

..hbuttons a{
display: block;
text-decoration: none;
font: 11px Arial;
color: black;
width: 140px;
height: 25px;
float: left;
display: inline;
margin-right: 8px;
background-image:url(backgroundbutton.gif);
background-repeat: no-repeat;
padding-top: 4px;
text-align:center;
border:none
}

..hbuttons a:hover{
background-image:url(foregroundbutton.gif);
}

..hbuttons a#current {
background-image:url(foregroundbutton.gif);
}



Reply With Quote