hi
i am trying to set up a home page with an email form, where i can fill out email address and subject and comments and the php page will run
mail -s [email protected] $comments
how can I do this via php to call the linux command?
thanks in advance
Hello,
I know it's not really a programming question but I don't know where to ask it.
Should i use a captcha in my sign up form ?
Facebook, twitter, foursquare, gowalla etc... don't use one (or not a visible one). Is there an invisible catpcha on theses sites ?
Thank you
Does anyone have a no JavaScript way to make HTML checkbox still submit a value? As in if you check it the form submission will include a value A but if it is uncheck it still contains a value B?
While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal.
How do i deal with dependent combo boxes in the views with the form helper. For example:
Country Select Box (Choosing a country shall filter out the states of the selected country)
States Select Box
This should happen with the help of Javascript / Jquery etc. I came across an example for the same with Cake's core AJAX helper but it would be very nice if someone can help with a Javascript example.
Thanks
enter code herei created my events on facebook throw php api (form my website) ...every thing its fine with
me and the events appear 100% on FB calendar , i got the FB event id and save to my db ,
enter code here
my users can join the same event on my website
i need them to join the same event on facebook also
i have the facebook event id , and user accept my permission to access his/here calendar
please anybody help!!!
I have got a form in Java (Swing) loading large amount of data from the database. I want to display a progress bar while the program gets actually loaded.
How can i do it??
How do I configure Ruby on Rails to output standard HTML code instead of XHTML when using helpers (form, javascript, css, etc.)?
I don't want to have the slash at the end:
<input name="email" type="text" />
I am trying to figure out where the ocean is in an arbitrary Google Maps view.
I actually have the lat lon (a range of points, when joined together form the coastline) of the coastline. But how do I tell which side of this line is the coastline?
One possible solution would be to find the latlon of the nearest service or town or business or something, and then the ocean is obviously on the other side (given a small enough enclosing polygon).
Is there a better way?
Recently I read some articles about some doubts about benefits of acceptance testing, because it is quite costly compared to what it brings. To form my own opinion, I would like to gather as much benefits of automated acceptance testing as possible. Can you help me?
I have to set a select date field with the month and day discarded. So Month and day are hidden in the form which caused a "undefined method `options' for # (NoMethodError)" when executing the cucumber scenario.
How can i solve this issue and get the year correctly into the cucumber step ?
I have a Rails (2.3.5) application where there are many groups, and each Group has_many People. I have a Group edit form where users can create new people. When a new person is created, they are sent an email (the email address is user entered on the form).
This is accomplished with an observer on the Person model. The problem comes when ActionMailer throws an exception - for example if the domain does not exist. Clearly that cannot be weeded out with a validation.
There would seem to be 2 ways to deal with this:
A begin...rescue...end block in the observer around the mailer.
The problem with this is that the only way to pass any feedback to the user would be to set a global variable - as the observer is out of the MVC flow, I can't even set a flash[:error] there.
A rescue_from in the Groups controller.
This works fine, but has 2 problems. Firstly, there is no way to know which person threw the exception (all I can get is the 503 exception, no way to know which person caused the problem). This would be useful information to be able to pass back to the user - at the moment, there is no way for me to let them know which email address is the problem - at the moment, I just have to chuck the lot back at them, and issue an unhelpful message saying that one of them is not correct. Secondly (and to a certain extent this make the first point moot) it seems that it is necessary to call a render in the rescue_from, or it dies with a rather bizarre "can't convert Array into String" error from webbrick, with no stack trace & nothing in the log. Thus, I have to throw it back to the user when I come across the first error and have to stop processing the rest of the emails.
Neither of the solutions are optimal. It would seem that the only way to get Rails to do what I want is option 1, and loathsome global variables. This would also rely on Rails being single threaded.
Can anyone suggest a better solution to this problem?
I'm passing a List to an MVC view and generating checkboxes for each object in the list (The checkboxes are named t.Name).
I'd like to be able to tell which checkboxes were checked once the form is posted. However, I'd like to avoid using the FormCollection object. Is there any way to do this?
hello, I do not know about this but we have a vb.net application running in a good form. But now the top level management wants to access this application from their mobile and I do not know what to do . Is this possible ? please guide me on this...
Basically need the default Wordpress TinyMCE WYSIWYG editor where the user will enter some formatted text in my plugin. How do I integrate/implement TinyMCE in a simple HTML Wordpress form??
I'm using Wordpress v2.9!
This question is not about what is a cross-thread operation, and how to avoid it, but why internal mechanics of .NET framework does not allow a cross-thread operation.
I can`t understand why a SerialPort DataReceived event cannot update a simple text box on my form and why using delegates this is possible?
I have a situation where an element, of type radio, is contained in an element. The anchor element has a href but I want to override that behaviour by adding a jQuery 'click' handler to the element.
The click handler makes the radio button inside it the selected one within the group. This all works when the anchor is clicked, however, when the radio button is clicked it appears that jQuery resets the selected radio to the previously selected one!
Here is a the simplified page that duplicates the issue:
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#a1").click(function(event) {
anchorClicked("a1");
return false;
});
$("#a2").click(function(event) {
anchorClicked("a2");
return false;
});
});
function anchorClicked(anchorId) {
$('#' + anchorId + ' input:radio').attr("checked", true);
alert("Look at what is selected and what happens after the event when this dialog is closed!");
}
</script>
</head>
<body>
<form>
<ul>
<li id="li1">
<a id="a1" href="javascript:alert('default functionality')">
<input value="1" name="rb" type="radio" id="rb1">
<span>Details 1</span>
</a>
</li>
<li id="li2">
<a id="a2" href="javascript:alert('default functionality')">
<input value="2" name="rb" type="radio" id="rb2">
<span>Details 2</span>
</a>
</li>
</ul>
</form>
</body>
Does anyone have any idea how I can prevent jQuery for resetting the radio button?
Im using c#.net windows form application. I have a xml file. I have loaded the node names of that xml file into a treeview. Now my task is , when I select a particular node from the treview, I should be able to display its attributes in a combo box. Please help.
i am developing a video player for a local tv channel, which is working well but the main problem is a 1-2 seconds pause between changing one video to second video how can i control that pause so that the video comming next should be played right after the currnet video finished with not any pause or stoping or blank screen effect......
i am using windows media player in my vb.net form for video playback...
Cannot download the WMP 11 SDK. It is now included in the huge Windows SDK and I am not able to download it now.
I need to know the exact definition of WMP_PLUGINTYPE_DSP_OUTOFPROC in the form similar to WMP_PLUGINTYPE_DSP in the WMP 9 version of wmpservices.h which is:
EXTERN_GUID( WMP_PLUGINTYPE_DSP, 0x6434baea, 0x4954, 0x498d, 0xab, 0xd5, 0x2b, 0x7, 0x12, 0x3e, 0x1f, 0x4 );
Thanks in advance,
Andrea
I have a C# .NET 2.0 project A that has a form (TreeForm) that uses Tree objects.
I have a project B that has a class Oak that inherits Tree.
When I try to reference and use the TreeForm in project B with my Oak objects, it's looking for objects of type Tree.
I've tried casting the Oak objects to Tree, but I get the error "Cannot convert type Oak to Tree".
How can I use my Oak objects in the TreeForm from project A?
I am making a simple servlet program and when i started my tomcat I m getting the error "java.lang.IllegalArgumentException:" and Parse error in application web.xml.
and in web.xml
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
sample
Samplelass
SampleClass
SampleClass
/sample
sample/page/form.jsp
Hi there Iam using asp.net mvc to do model binding, when I pass a model to a view, I am able to see the model data displayed in the form inside a label,
<%= Html.Label(Model.title) %
<%= Html.Label(Model.description) %
however, I am not able to do the same using
<%= Html.TextArea(Model.description)%
is there a syntax difference between displaying in a label as oppsed tp a textbox