I use the $_GET function to pull a value with php from the url (http:..../index.html?variable=value), basic stuff. However, I need to use that value in my form.
Typically, I would set
<?php echo 'value="'.$variable.'"' ; ?>
or something to that effect. However, I can't use php inside my form using the editor I'm working with.
Can I ...
Is there a way to restrict the user to a folder on the server when they choose to browse for a file using the input type=file button?
for example: If you have images you want the user to choose from that only exist in the server's image folder to prevent them from search for and uploading their own images.
...
Please check out the comment field at the bottom
on http://tinyurl.com/3xow97t
in Firefox - it works pretty well - the red warning gets added if empty
and the submit gets disabled - once there is text inside, the submit gets re-enabled.
the problem i have now, it does not work in IE.
i really hope somebody can help.
the iframe conte...
I am using datagridview control and in this grid user can edit the value of a fixed column.
i want user only can write numaric values (e.g. 1, 2, 443 etc)
I am not sure at which event of datagridview i have to write this code and what is the code to trap values
...
hi there. have looked at Phil Haacks project on books at
http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx
which has been useful, but I have a mix of data types.
I use a modelview so that i can have a mix of objects, in this case: Order (ie order.id, order.date etc), Customer, SoilSamplingOrder and a list of SoilSam...
So i have this in my form:
<textarea onfocus="javascript:clearContents(this);" rows="5" cols="40" id="comment" name="comment">Skriv hvorfor du vælger at stemme ja/nej. Skal indeholde detaljer, kritik/råd. Klik for at skrive</textarea><br />
Ja: <input type="checkbox" value="Y" id="SCvote" name="SCvote"> eller Nej: <input type="checkbox...
My Code :
<?php
function dbAdd($first_name , $image) {
//mysql connect database code...
mysql_query("INSERT INTO users SET first_name = '".$first_name."', image = '".$image."'");
$mysql_close($sql);
}
if($_SERVER['REQUEST_METHOD']=='POST') {
dbAdd($_POST['first_name'], $_POST['image']);
}
?>
<form enctype="multipart/form-data" met...
Hello guys
Might be an easy for you guys. I am trying to sort the $_POST variables that were sent by a form and update the sorted result in mysql. I am not sure how to do it and appreciate it anyone can help me about it.
My main.php
//I have a loop here. (omitted)
//$k will be increased by 1 every time the loop starts, so I will kn...
At the beginning of a section of C# code that could take several seconds to complete, I'd like to display a non modal form with a label that just says, "Please wait..."
WaitForm myWaitForm = null;
try
{
// if conditions suggest process will take awhile
myWaitForm = new WaitForm();
myWaitForm.Show();
// do stuff
}
finally
{
...
I am using jquery-ui tabs and I've set it up to select the correct tab depending on the #hash from the requested URL.
I have a form which performs a search, and each tab present the result from different providers. so if the form is submitting to the action "/myAction#tab1", when the results load, the corresponding tab gets selected.
Th...
Hi,
I'm trying to check whether val() has a specific value or not inside a form, if so deleting the contents / preventing the form being submitted depending on if both fields are filled in (stringOne and stringTwo). There's a default text for each input field, the first being "Namn, telefonnr, sökord" and the second "Område, plats, ort"...
Hello guys
I am trying to remove the elements and contents
before a link inside a div when a user clicks a button.
What is the best way to do it??
<div id="dialog" class="window">
//will be inserted a <select> element and few text here
//but I want to clear them after the user click a button
<a href="#" ...
I'm very new with rails and I've been building a CMS application
backend.
All is going well, but I would like to know if this is possible?
Basically I have two models:
@page { id, name, number }
@extended_page { id, page_id, description, image }
The idea is that there are bunch of pages but NOT ALL pages have
extended_content. In t...
Hi!
I Have one Form (LoginForm) which has a Background Worker Monitoring a database for new entries.
Then I have another Form (AdminForm) which I need to signal to update its datagrids whenever new data is available.
I could poll the database in the AdminForm too, but considering that LoginForm is already doing some polling, which can...
Hi there,
Some code a production server which uploaded files has seemingly stopped working with the following error:
JRun Servlet Error as the title of the page and the following in the page body:
500
The system cannot find the path specified
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem....
Hi,
I have been scouring the internet for a way to do this with no luck :(
Basically, it's easy to make a form in HTML with a submit button and some data, and send it to a URL. With this you send the POST data and also the user is taken to the page.
I know you can send POST data using cURL and get a response back in PHP but how do I ta...
I have a form inside an iframe which is inside a jQuery UI dialog box. The form contains a file input type. The jQuery UI dialog contains an Upload button. When this button is clicked, I would like to programmatically call the submit method. My question is how I could select the form which is in a iframe using jQuery. The following ...
I have a form in index.php
<?php
echo '<form action="update_act.php" method="POST">';
echo '<input type="submit" name="'.$row['act_name'].'" value="edit">
echo </form>
?>
Here $row['act_name'] is a value fetched from database.
My update_act.php file is
<?php
echo "Old Activity Name : ".$_POST['$row[\'act_name\']'];
?>
B...
'view_act.php' file
<?php
$query = mysql_query('select * from activities');
$check=mysql_num_rows($query);
if($check==0)
{
echo "No enteries found ";
}
else
{
static $counter;
echo '<table border="1" cellpadding="5" cellspacing="5" align="center">
<tr>
<th><font color="#FF9900">ACTIVITY ...
Hi,
I'm building a PHP intranet for my boss. A simple customer, order, quote system. It will be denied access from the Internet and only used by 3 people. I'm not so concerned with security as I am with validation. Javascript is disables on all machines.
The problem I have is this:
Employee enters valid data into a form containing an...