I'm not validating emails. What I want to do is find (and then change) 3 separate types of "email" content in a (html) string:
a plain email: eg [email protected]
a mailto href: eg <a href="mailto:[email protected]">[email protected]</a>
an aliased href: eg <a href="mailto:[email protected]">user's email</a>
I'm then going to transform each example ...
From what I read, PHP 6 will break a lot of php scripts. I understand the reasons why it may break but why don't they just keep the PHP 5 and simply call PHP 6 as a different language based on PHP syntax? Like for example, why not just call php 6 scripts with an extension, "p6"- why are they trying so hard to make it backward compatible ...
What is needed is as follows:
I have an HTML webpage and I need to access another website and get something from its source code.
I want to run something like
link = "http://www.google.com";
doc.querySelectorAll('#courses_menu > ul > li > a'); // Apply on the link.
to get what I need from the link and use it!
However, I am using J...
I have a form where i have many music genres. An artist can be singing under many genres. I have put the genres in checkboxes. Now i need to store the values of the checkboxes in to a single field.
Can some one help me out with some code snippet as i am new to php programming?
...
What are the html rendering differences between IE 7 and IE 8?
...
How can I apply a CSS style block to several different classes? For instance, I have
<div class="foo">...</div>
<div class="bar">...</div>
...
.foo .bar ??? // This selector should apply to both classes
{
font-size:50%;
...
}
...
Here's my forms layout:
<body>
<p>Note that this form doesn't actually do anything
except illustrate the Required Field Validator.</p>
<form id="frmValidator" method="post" runat="server">
Usuario:
<asp:TextBox id="txtUserName" runat="server" />
<asp:RequiredFieldValidato...
This is the div for my product, you can see the demo like this:
<div class="productItem">
<div>
<!--image -->
</div>
<div>
<!--text -->
</div>
</div>
http://www.4freeimagehost.com/show.php?i=4aba7e2005a0.jpg
Each product has a product image and product text. The image...
I have a simple HTML table, and I wish to have the separating lines (/ borders?) disappear.
The desired end result is a table that is invisible except for the actual text.
I've tried setting the "border" attribute to 0, didn't help. What is the correct CSS attribute that I should use?
...
Given the following code:
HTML:
<div id="nav_bar">
<ul>
<li ><a href="#" class="current">HOME</a></li>
<li><a href="#">GALLERY</a></li>
<li><a href="#">TO DRINK</a></li>
<li><a href="#">TO EAT</a></li>
<li><a href="#">LOCATION</a></li>
<li><a href="#">CONTACT</a></li>
<li><a hr...
Hi ,
I have a form which is accept html data but we need only their respective text not anything else.
is there any particular way to extract the text out of the html in php?
regards.
...
If I make an <h1> title, its width is set to 100% by default. Is there a way to make sure its width is set to the smallest value possible? I need this to do special CSS stuff with borders.
...
I have a <table> with table-layout set to fixed, so that all explicit width/height definitions are respected no matter what. I'm trying to get a certain <td> to overflow, but even though I did the table-layout: fixed it doesn't work.
What should I do to make it work?
...
I am an OOP programmer and have been it for almost two years now. I know Java and C#. What I don’t know is web programming. I know what HTML is but have never really worked with it. What is the best way to get started with web programming?
HTML, CSS, javascript, php, ASP.NET. What should I start with?
The reason I want to learn web pro...
I have been reading alot documentation surrounding recurring payments and paypal. It can be frustrating at times to setup paypal especially when you are not told of the requirements and restrictions that apply to the paypal service you are trying to setup. I wanted to setup recurring payments because I would like to provide options for m...
Hi, I am having some problems with setting up the RVskin. I have reseller account running WHMCS.
I inputed and approved a few test orders for a test webhost package. The account was created in whmcs but not whm.i.e. the cpanel account was not created. The activity log had this: "Error: Unable to validate setting for cpmod: RVSkin. ". Ple...
Is there any reason why you should or shouldn't name your form fields exactly the same as the HTML fields?
<input type="text" name="my_field_1" id="my_field_1" /> --> mysql row my_field_1
or
<input type="text" name="myField1" id="myField1" /> --> mysql row my_field_1
The only thing I can think of are probably naming conventions for...
<td id="'.$row['id'].'"style="display: none;">
<input id="addEdit" type="text" value="" size="4"/>
</td>
<td>
<input name="add" value="A" type="submit" onClick="addObs('.$row['id'].'); return false;"/>
</td>
.
function addObs(id)
{
var addEditTD = document.getElementById(id);
if (addEditTD != null && addEditTD.style.d...
I have some client-side JavaScript validation on a form. It works great. But I want to accommodate users who have JavaScript disabled. My validation isn't run from the form's onsubmit attribute, it's an event handler that is bound to a normal button in the form. So the button that kicks off the validation and submit isn't actually a subm...
When the mouse cursor moves over an image, I would like to display an alert() containing the value of that image's src attribute. How could I go about accomplishing this?
...