User Profile
Collapse
-
I want to use the code to validate all inputs of a form and be able to reuse it in other forms.... -
this code does seem like it is only for 1 field. the code that I posted is a reusable code. how can your code be converted so that it can be applicable to any textbox?...Leave a comment:
-
Validate input text field and clear if invalid
I have this javascript validation code that I want to be able to clear an input text box when the inputed value is invalid.
Note: this is a reusable validation code.
...Code:function isChar(form1) { var letters = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz"; var strChar; var dig = true; if (form1.length == 0) return false; for (a = 0; a < form1.length -
One more thing, how can your code be enhanced in such a way that it can be applied to this source code?
[PHP]<?
if($part_no1!=" " || $mid1!="")
{
$querypa1 = mysql_query("IN SERT INTO so_parts (part_id, qty, so_no) VALUES ('$part_no1','$ pquantity1','$s o_no')");
mysql_query("UP DATE part_inventory SET qty_in_hand = qty_in_hand - '$pquantity1' WHERE part_id = '$part_no1'");...Leave a comment:
-
I will be running my program over an intranet. Access will and can only be done within the company. Will I still be needing to sanitize it?Leave a comment:
-
-
how to insert rows to the database in a loop
I'm using php/mysql to develop a program. What I need to do is create an insert query that would be able to insert at least 9 rows of data from input text boxes. But of course, before inserting the data checking which rows are empty.
I did something like this:
[PHP]
<?
$item_code1 = $_POST['item_code1'];
$description1 = $_POST['description1'];
$quantity1 = $_POST['quantity1'];
... -
[PHP]<?
include("conn_d b.php");
?>
<html>
<head>
<title>Customer s</title>
<link href="css/format.css" rel="stylesheet " type="text/css">
</head>
<body>
<form name="form">
<table width="136" border="1">
<tr>
<td...Leave a comment:
-
Still no luck. Didn't work as well. I forgot to mention that the for loop is inside another for loop....Leave a comment:
-
Thanks for the reply. But the thing is, it still didn't work.
For some reason, it just broke apart the array values and displayed the letter of the value where the position is $x....Leave a comment:
-
problem with printing array values
I have an array of values that come from a database.
I used a FOR loop to retrieve each of the values and pass it on to text fields. But the instead of displaying the whole word, only the first letter of the values get displayed and it doesn't even pass the values.
[PHP]
<?
$desc_array = count($part_des c);
for($x=0; $x<=$desc_array ; $x++)
{
?>
self.opener.doc ument.form1.par ticles[<?=$x?>].value=<?echo... -
I re-read your reply and your idea actually can be a solution. but there's still a problem. I want the query data to be passed to rows of textboxes using a popup list box.
the names of the texboxes are almost similar. the only difference they have is that they are numbered.Leave a comment:
-
I mean sending a message when the user sets it to be sent. Say for example, sending an updated message every other day.
Should this be provided by the website host or is there any way to program in such a way that it functions the way I want to.Leave a comment:
-
Thanks. Now how could I use this code to send a scheduled message ?...Leave a comment:
-
send related information to email
I'm developing a job search engine website.
I need to be able to send an email to users everytime there is a match of their job description. It is somewhat a list of the latest job matches. and based on the latest database entries.
I really have no idea on this and this is the only lacking feature of the program that I am developing.
please help. thanks. -
Thanks for your reply but that's not what I want to do. As what I wrote on my post, I want to be able to pass queried data to rows of input text boxes.
To add up to that, the queried data is displayed on a popup window that contains a combo list box. When the user clicks on, say for example a receipt number, the data is then passed to the parent form and automatically fills in the fields. As seen on my example above, the rows of textboxes...Leave a comment:
-
passing query data to different rows of input text boxes
I want to be able to pass rows of queried data to rows of input text boxes. As the example below shows, I have come up with this incomplete solution. But this code only passes the data to the first row. I need to be able to pass it to all the rows.
[PHP]
<input type="text" name="prod_id1" ><input type="text" name="qty1">
<input type="text" name="prod_id2" ><input... -
assign passed variable as selected value in drop down box
What I need to do is be able to pass a variable that gets assigned as a selected value to a dorp down box. I need to pass it to another page.
Please help. -
a contract between two parties. say for example, me and a company.Leave a comment:
-
how to make a software development contract
could anybody please help me. I need to write a software development contract and I really have no idea how to.
No activity results to display
Show More
Leave a comment: