
vistar86
New Members-
Posts
9 -
Joined
-
Last visited
Never
Everything posted by vistar86
-
anyone else have a clue?
-
Cannot get that working, just realized there is many 'rolink' classes, the only thing that seperates the link is the new code here: <div class="rocol1First"> <div class="rolink"> <a href="/cgi-bin/WebObjects/GSXAppServer.woa/73/wo/0Jb9OjqwmbbcZXnb12HA20/3.45.15.1.3" onclick="javascript: return setSerialNumberInURL(this, 0);">Coverage Check</a> </div> </div> the rocol1First would be the one to go for if clicking by class value as this is the unique key. if i'm not able to click the href then even getting the location from it into a variable would do. thanks for your help though.
-
Hi everyone, hope someone can help my hurdle i'm stumped at... how can i dynamically/programatically click this href link: <div class="rocol1First"> <div class="rolink "> <a href="/cgi-bin/WebObjects/GSXAppServer.woa/73/wo/0Jb9OjqwmbbcZXnb12HA20/3.45.15.1.3" onclick="javascript: return setSerialNumberInURL(this, 0);"> Coverage Check </a> </div> </div> i do not have direct access to change the code manually, and the href location is always different, and to top it all off, the link does not have a name or id I'm ripping my hair out, and have spent many days just to get past this! suppose someone will just give me a 5 minute solution and make me look like a complete idiot lol... many, many thanks for even looking and attempting to help me, much appreciated.
-
$var_name= empty($_POST['var_name']) ? array() : $_POST['var_name']; if its empty it will result in empty array, or you could do this: $somethinghere= "string"; // will output whatevers here if empty $var_name= empty($_POST['var_name']) ? array($somethinghere) : $_POST['var_name'];
-
try this: <table width="490px" border="0" cellspacing="1" cellpadding="0" style="text-align: left"> <tr> <td style="height: 56px"><table width="490px" cellpadding="3" cellspacing="1" class="border" > <tr> <td colspan="3" class="border_id"><strong>Download File...</strong> </td> </tr> <tr> <td align="center" class="border_id" style="width: 49px; height: 13px"><strong>Id</strong></td> <td align="center" class="border_id" style="height: 13px"><strong>Name</strong></td> <td class="border_id"></td> </tr> <?php include_once('config.php');?> <?php // select record from mysql $sql="SELECT * FROM files ORDER BY id ASC"; $result=mysql_query($sql); { while($rows=mysql_fetch_array($result)) echo "<tr>"; echo "<td class='border_id' style='width: 49px'>$rows['id']</td>"; echo "<td class='border_name'>$rows['name']</td>"; echo "<td class='border_id'><a href='upload/?id=$rows['id']'>Download</a></td>"; echo "</tr>"; // close while loop } // close connection; mysql_close(); ?></table></td> </tr> </table> if that doesn't work then try with dots on either sides of the rows like this: name'>.$rows['name'].</td>
-
What have i done to stop my php displaying in xammp.
vistar86 replied to phpnewby1918's topic in PHP Coding Help
Try this: if ($data[4]==$dbdate&&$dbto==$data[0]) { echo "No need to update this record"; } See if it echos now, i'm presuming as you have told it to "Die" it will stop there and not follow on the seperate echo?? may be wrong, but i'm no pro either -
No you were right only missed one small thing : $color= emtpy($_POST['colour']) ? array() : $_POST['screen']; thanks changed the screen to colour erm, what about all the other sections to come? screen is main section then want to add to end of screen > colours > type > style > features etc, i think i may be able to do it now thanks to you, but any input will be great
-
Thanks for your input but the result of this is: a,b,c,d b,b,c,d c,b,c,d d,b,c,d the colours are not showing, only screen, even though i selected colors also. but i can see that its getting there
-
Hi please be tame with me i'm new to php So now i'll tell you the problem. This has multiple selection checkboxes form, so person could check up to 9 checkboxes in color section, and different amounts of checkboxes in each sections. don't know if "(list" is the way to be going as theres many more _POST to be added after the "||" i would like it for each checkbox checked as $val the same $v should be put at end of each $val checked. hope you understand? THE FORM <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <body onload="document.forms['Form1'].reset()"> <form action="phonefinder.php" name="Form1" method=POST> <table> <tr class="pfinderhead"><td colspan="3"><b>Screen Size:</b></td></tr> <tr><td style="width:35%;">128x160: <input type="checkbox" value="first" name="screen[]"></td><td style="width:30%;">176x220: <input type="checkbox" value="second" name="screen[]"></td><td style="width:35%;">240x320: <input type="checkbox" value="third" name="screen[]"></td></tr><tr><td style="width:35%;">Larger: <input type="checkbox" value="fourth" name="screen[]"></td><td style="width:35%;">Any: <input type="checkbox" value="fifth" name="screen[]"></td><td style="width:30%;">Touch: <input type="checkbox" value="sixth" name="screen[]"></td></tr> </table> <table> <tr class="pfinderhead"><td colspan="3"><b>Colour:</b></td></tr> <tr><td style="width:35%;">Black: <input type="checkbox" value="black" name="colour[]"></td><td style="width:30%;">Blue: <input type="checkbox" value="blue" name="colour[]"></td><td style="width:35%;">Gold: <input type="checkbox" value="gold" name="colour[]"></td></tr><tr><td style="width:35%;">Grey: <input type="checkbox" value="grey" name="colour[]"></td><td style="width:30%;">Pink: <input type="checkbox" value="pink" name="colour[]"></td><td style="width:35%;">Red: <input type="checkbox" value="red" name="colour[]"></td></tr><tr><td style="width:35%;">Silver: <input type="checkbox" value="silver" name="colour[]"></td><td style="width:30%;">White: <input type="checkbox" value="white" name="colour[]"></td><td style="width:35%;">Any/Other: <input type="checkbox" value="ANY" name="colour[]"></td></tr> </table> <input type="submit"/> </form> </body> THE SCRIPT $screen=$_POST['screen']; $color=$_POST['colour']; while ( (list ($key,$val) = @each ($screen)) || (list ($k,$v) = @each ($color)) ) { ///Output should be first $val in list followed by $v; then second $val in list followed by SAME $v } So say if i checked in the Screen: a,b,c,d. Then checked in color: 1,2,3,6,7,9. would like it to output: a,1,2,3,6,7,9 b,1,2,3,6,7,9 c,1,2,3,6,7,9 d,1,2,3,6,7,9 NOT like a,b,c,d,1,2,3,6,7,9 which it does now. thanks in advance hope someone can help me