I've been looking tutorials and examples of setting the value field of a input tag. I'm trying to enter two IP addresses into the text fields on [this](https://www.ipaddressguide.com/cidr) website, under IP Range To CIDR. But my code won't enter anything. There's no ID tag, so I can't use the getElementById method. ![Inspect.PNG](/attachments/large/3/bf0f61148c19288f410be68448d613f5.PNG) Dim url As String Sub ConvertIPRangeToCIDR() Dim IE As InternetExplorer Set IE = New InternetExplorerMedium With IE .Visible = True url = "https://www.ipaddressguide.com/cidr" .navigate (url) While IE.Busy DoEvents Wend Dim Elements As Object Set Elements = IE.Document.getElementsByTagName("input") For Each Element In Elements If Element.Name = "ipFrom" Then Element.Value …

Member Avatar
Member Avatar
+0 forum 1

See this thread. https://www.daniweb.com/programming/software-development/threads/506236/may-i-please-have-help-with-a-cannot-find-symbol-error The first line of my response is code and I did not forget to indent. I also used the `</> Code` button. It turned green like it should, so it looked fine. Then I hit submit and the code was in regular text. Edited it a few times, each time looked right, but posted wrong. Using Chrome on Windows 10.

Member Avatar
Member Avatar
+0 forum 3

The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> I'm getting the error 'Invalid argument supplied for foreach()' when I run this page. Can I not break out of the php and go into html and then come back to my php using the $connection variable created in the upper php code? Or once I break out with `?>` is that it, all variable can not be picked back up again futher down in the page? I can't think …

Member Avatar
Member Avatar
+0 forum 8

I wish to implement a tag system for a gallery,I have a huge number of images and all of them are to be associated with one or more tags. The number of tags is also large,but not exceeding say 500,isn't constant.Tag texts may also be large in certain cases. What is the best way to implement such a tag system performance-wise(out of the following or add yours) 1.Create a column for every tag in the images table,fill it with 0/1,requires manually changing the DB structure,everytime a new tag is added. 2.Have a single column named tags in the images table …

Member Avatar
Member Avatar
+0 forum 2

Currenlty i have learned html5 and css3 from different sites no one give complete tutorials about everything and doesn't made me satisfied when i see uniques combinations of tags and and some that i don't know i totally get disappointed.People have done great work only with html and css and i wish i could be some day but i want to go for the next language only when i will learn some great tricks in html and css.So what is the best source to learn html and css.And also where you have learned these languages?.

Member Avatar
Member Avatar
+0 forum 1

Chaps, I have a question about nesting elements. I am using bootstrap for a project I am working on, and for whoever didn't know that - I am one of those - in bootstrap buttons are `display:inline-block;` Now, I have this situation at the moment: `<p><button>My button</button> This button means X</p>` Is it acceptable to have the button before the text of the paragraph? Personally I think so, because `p` is a block element and `button` regardless of the value of its display property can be inside `p`, but I thought I'd double check. Any objection?

Member Avatar
Member Avatar
+0 forum 3

Hello. I want to get data from a table. I wrote the folloing JavaScript code: var homeTeam = document.getElementById('home').firstChild.data; The html code for the table is: <table> <tr> <td id="home"><span class='yellowcard'></span>Tottenham</td> <td id="away">Chelsea</td> </tr> </table> How is it possible to get the word 'Tottenham' in this case? My JavaScript code is working only if 'span' tags are removed.

Member Avatar
Member Avatar
+0 forum 16

I am having trouble vaildating my web-design. I am trying to change over from a table based design to a div base. Problem is I started out with tables so I now have a combination of both and sure how to fix it. I have pasted my code here: Please help! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>correctedhomepage.html</title> <link rel="stylesheet" href="styles.css" type="text/css" /> <meta name="Generator" content="Alleycode HTML Editor" /> <meta name="Description" content="Your description here..." /> <meta name="Keywords" content="Your keywords here..." /> <link rel="stylesheet" href="/include/easy.css" type= "text/css" /> </head> <body> <div id="centernavigation"> <div size="80%" cellspacing="0" cellpadding= …

Member Avatar
Member Avatar
+0 forum 10

Here is my take as code tag police in new era of Daniweb: http://www.daniweb.com/software-development/python/threads/418619/generate-page-using-python Reposted here: Could you repost with new code markup, which is indention by at least 4 spaces, after empty line, so you could do in your python editor: ctrl-A, indent, ctrl-C, undo (or close without saving) and paste it to your post. Or make empty line, paste code, select it by mouse and clic the **Code** from menu ribbon. *Is there way to directly link this text as link in my new signature?*

Member Avatar
Member Avatar
+0 forum 1

Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="Volume" value="-450"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="<?php echo $check ?>" name="MediaPlayer1" width="270" height="100" autostart="1" showcontrols="1" volume="-450" align="absmiddle" displaysize="0" autosize="0" > </embed> </object> [/CODE] This is the one from Chrome, [URL="http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg"]http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg[/URL] This is the one from IE(all versions same problem) [URL="http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg"]http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg[/URL]

Member Avatar
Member Avatar
+0 forum 1

Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="Volume" value="-450"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="<?php echo $check ?>" name="MediaPlayer1" width="270" height="100" autostart="1" showcontrols="1" volume="-450" align="absmiddle" displaysize="0" autosize="0" > </embed> </object> [/CODE] This is the one from Chrome, [URL="http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg"]http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg[/URL] This is the one from IE(all versions same problem) [URL="http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg"]http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg[/URL]

Member Avatar
Member Avatar
+0 forum 4

Hi everyone, thanks for reading this. I am trying to write some code so that a vote button won't allow a person to vote unless they are registered and logged in. I have this written, but it's not outputting properly. I'm pretty sure I am not encoding the URLS properly within the PHP tags. I can get different buttons/images to display based upon the logged-in status, but I need the URL to change also so they will be thanked for voting or be asked to register after clicking. Make sense? I've googled the crap out of this - I'm probably …

Member Avatar
Member Avatar
+0 forum 6

Hey, I have an website with dynamic text on it, i want to transfer the text to an textbox, and the text is between this tags: <pre> </pre> How do i do this?

Member Avatar
Member Avatar
+0 forum 11

I have relative links in a menu page of the form: [CODE]<li><a href="info.htm#part1">See Part 1 of the problem</a></li>[/CODE] In the target page, the anchor is made as follows: [CODE]<h1><a name="part1">Part 1 of the Problem</a></h1>[/CODE] Now, after upgrading to Firefox 4, I am getting a 405 error: URL /Part1.html not found. IE works OK on the same links. That error message does not even make any sense. Part1 is not the URL for the page.

Member Avatar
Member Avatar
+0 forum 1

Hi, please point me in right direction. I want to be able to post php/html/mysql code on my website and have it viewed as i would if i posted code on daniweb and used the CODE tags for e.g [CODE]<?php echo "I would like to see my code like this"; ?>[/CODE]

Member Avatar
Member Avatar
+0 forum 1

Hi I have a client who wants to provide me with Microsoft Publisher documents to add to his website. The material will be added via a content management system. I can't just select all and paste into the CMS so I have saved a copy of the Publisher document as an image file, a png. Fine, the doc displays well. Ideally, I should provide a text equivalent for accessibility purposes but the Alt tag won't take more than a hundred words, using IE 8 and Firefox won't even display the contents of the Alt tag at all. Has anyone an …

Member Avatar
Member Avatar
+0 forum 4

Hi there, This may or may not be a dumb question, but I've never come across it before. Can you point to a javascript 'onsubmit="return validation()"' on a form, but WITHIN PHP tags? Such as the below. [CODE]function validation(){ var reply = document.getElementById('comreply'); var div = document.getElementById('errormsg'); if((reply.value == '') || (reply.value == ' ')){ div.innerHTML = "Please type a reply"; reply.focus(); return false;} else{ return true;} }[/CODE] [CODE]<? echo "<form name=\"reply\" method=\"post\" action=\"replydone.php\" onsubmit=\"return validation()\"><textarea name=\"comreply\" id=\"comreply\" cols=\"25\" rows=\"4\"></textarea></form> ?>[/CODE] Thanks for all replies.

Member Avatar
Member Avatar
+0 forum 3

Hi all! I'm putting together a WordPress blog, and I'm trying to make it work with a standard template called "Tribune." It uses custom tags on posts to apply thumbnails and featured images. I can't quite figure out where to place the code in the index file to get it working. The website is [URL="www.prezblog.com"]www.prezblog.com[/URL] . Here's the code they want me to embed, with a few parameters. [CODE]<?php if(function_exists('wp_smart_image')) wp_smart_image($size='mini', $type = 'single') ?>[/CODE] My index file is as follows, and is also attached: [CODE]<?php get_header(); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : ?> <?php if(function_exists('wp_smart_image')) wp_smart_image($size='mini', $type …

Member Avatar
Member Avatar
+0 forum 5

Hello people, I'm trying to collect some data stored between <body> and </body> tags inside a string. Here's a piece of the code i'm using: [CODE] $regex = '/<body>(.*?)<\/body>/si'; preg_match($regex, $content, $content); $content = $content[0];[/CODE] This works perfect, except that it also includes the above mentioned tags. I would just like to grab the content in between those tags and store it. In other words, only store the (.*?) part of the regex. Anyone have an idea how to solve this? :)

Member Avatar
Member Avatar
+0 forum 1

Hi to all, i am building a site with movie reviews.. due to the fact that a movie may have more than one category ex action, adventure, sci fi etc i ended up using a sinlge column to add all tha categories in comma delimited form.. 1st question. is the structure wrong? do i have to alter the table each time the user add a new category and store any category as a individual column? 2nd question. how can i find similar movies order by the most common values? ex i have a action,fantasy movie and then movies with action,adventure,horror …

Member Avatar
Member Avatar
+0 forum 9

Sorry, thread title a little melodramatic, but making sure is noticed :D Seriously though, when tags initially rolled, individual "tags" were separated by a [B]comma[/B], rather than by a [B]space[/B] (although commas still seem to work as well). The problem is that this updated format disallows a two-word tag, such as "Windows 7" - the space btwn the two creates [B]two individual tags[/B]... the [I]original[/I] tags rollout had no such issues. Is there a reason for the changes, or is it possible to go back to the original tag format? calamity

Member Avatar
Member Avatar
+1 forum 6

The End.