I created "uploads" folder on the server, and a file uploaded by a user on the HTML form, gets into that folder fine.
Next, I try to retrieve it from that folder and attach it to an email, but this part doesn't work.
Here is my PHP:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$form_subject = $_POST['form_subject'];
$mess...
i have a vb6 project which uses web-components to open a HTML file, whenever i execute the vb6 program it asks me "Active X control on this page might be unsafe to interact with other parts of the page.Do you want to allow this interaction? Yes or No"
How to bypass this pop up?
...
Hi everyone,
I'm trying to choose between a couple of different HTML parsers for a project I am working on, part of which accepts HTML input from the client.
I've built a simple automated test for each one, to see if they fit my needs. I have a large number of real-life HTML fragments to test, but they aren't enough for testing for saf...
I have a div with border-radius set to some value (let's say 10px), and a nested div that is the full width and height of its parent.
<!-- ... -->
<style type="text/css">
div.parent {
display: block;
position: relative;
width: 100px;
height: 100px;
border-radius: 10px;
background: #0000ff;
overflow: hidden;
...
How do I create a php file "redirect.php"
That takes 1 input parameter "URL", have to check the URL
Page is not dead before rediecting?
Example
1 user clicks on link
http://domain.com/Redirect.php?URL=http://example.com/page1.php
2 redirect.php checks if page (http://example.com/page1.php) is ok!
3 if ok redirect user to http://exam...
Users run my HTML files locally, straight from a CD.
I want to allow them to choose a bunch of videos and create a playlist on the fly.
This works very well if I run a web server but when I run the HTML itself it fails.
The player is created (using swfobject) and all my other code runs but playerReady never fires so I can never get th...
Hello SO'ers
I want to learn to develop a small website.
Any help how to get started with it.
I come from a windows app background and i want to get started with web apps.
Cheers
this-Me
...
I have hundreds of .doc files with text that I need put on web pages.
I realize I could convert every .doc file to .txt, then use a server side include to embed the contents of each page into a webpage. This would save a lot of time because I could simply have one .php?txt=... page which will display a different .txt include depending o...
I've noticed while testing my website that the font-size in fields on FF 3.5 on Mac's is bigger than on FF 3.5 for windows or any other browser.
Is there a way to style this or fix it? I've tried setting input { font-size: XXpx; } to no avail!
...
Is there ever an instance in which something should (or can?) be placed between the </body> and </html> tag? Or should they always be paired?
I was reading the HTML5 spec, and it got me thinking about the basic structure of a page.
Are there any cases where anything can/should be placed after the </html> tag? It used to be gospel that...
I have the following image which I need to turn into an HTML widget on my site.
How would you divide up the divs and splice up the image to make this? It needs to be resizable.
Should I slice off the corners and have a Top-Left, Top-Right, Top-Middle, Middle-Left, Middle-Right, Bottom-Left, Bottom-Middle, Bottom-Right? What would th...
Either using plain HTML or jQuery assisted JavaScript, how do you display tooltips on individual <option> elements to aid the decision process (there is not enough room for a different kind of control and some help will be needed).
Can this be done though a plugin or similar?
I have tried a few tooltip plugins for jQuery with no succes...
I know regex isn't popular here, what is the best way to extract a value of an input tag within an HTML form using a php script?
for example:
some divs/tables etc..
<form action="blabla.php" method=post>
<input type="text" name="campaign">
<input type="text" name="id" value="this-is-what-i-am-trying-to-extract">
</form>
some d...
In my php script I created a constant variable that defines the base url to be put in my hyperlinks, but do I really need this?
Here is an example of what I mean.
I have this:
// base url is only defined once and reused throughout
define("__BASE_URL","http://localhost/test1/");
print '<a href="'.__BASE_URL.'index.php?var1=open/>Ope...
Is there any way, from Javascript, to determine either the system's selection color (the color it makes text that the user selected), or the system's focus color (the color that is added to the outside of a tab-focused link or form element)?
...
So I have a INPUT TEXT that upon keypress=enter prepends an LI to an UL
The LI contains a LINK that gives the user the option to remove it from the UL
HTML (on page load)
<ul id="conditionList"></ul>
after ther user inputs some conditions, the UL gets populated with LI
<li>condition<a href="#" class="clearitem">x</a></li>
However...
I'm refactoring a .Net web application that is in
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Right now the approach is just to aim for the stars and go for the latest doctype just because it's latest, I would like to make a wiser choice and target a specific one and for good reasons.
There are similar questions...
Please note, I'm not asking how to implement or code a multi-column list.
There are two ways to sort multi-column lists: horizontal and vertical. Many of the Microsoft System.Web.UI.WebControls have a RepeatDirection property that offers these two options. I'm sure other frameworks also offer these direction options.
Below are sampl...
I've got an HTML <form> with a few <button>s and an <input type="submit">:
<form>
<button>first button</button>
<button>second button</button>
<input type="text">
<input type="submit">
</form>
But when enter is pressed while in the text field, the "first button" is activated instead of the "submit" button.
How can I m...
suppose I have a table:
<table width="100">
<tr>
<td>
hi i like you you are awesome blah blah blah no no no no
</td>
</tr>
</table>
then the table will be displayed with 100px width just fine
but then if the table becomes:
<table width="100">
<tr>
<td>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...