Hi, i have a jquery ajax form.
i have validation at server side for repeated username and email ID.
which works fine without jquery/ajax.
in my php code i have used die() to return if any error occurs. my main problem is at ajax
here is the code
$(document).ready(function(){
$("form#regist").submit(function() {
var str = $("#regi...
here is my code....
$subject = "This is Subject";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
$to = '[email protected]';
$body = 'Mail Content Here';
mail($to, $subject, $body, $headers);
but when i open this file it sends a mail to $to successfully but with wrong headers....and my hosting server default address i.e...
is the regexp the same between languages?
for example. if i want to use it in javascript, would i have to search for regexp for javascript specifically. cause i got some cheat sheets. it just says regular expression.
i wonder if i could use this on all languages, php, javascript and so on.
...
I want to store the timestamp which a row was inserted into a MySQL table with the row, to be later compared to other times. What's the best field type for this and what's the best way to insert the row with the timestamp in PHP?
...
I would like to set a scheduled task/cron job to update database. I planning updating the database using a php script, i.e connect to database and execute SELECT and UPDATE query. I already prepared the php script, and what should I do next?
I am (my server) is using Windows Server 2003, IIS, php and mysql.
When I google this, I got t...
The system I'm using has a bug dealing with ',is there a html format for '?
Is there a PHP function to look up this ?
...
Hi experts,,
I have opened the database of drupal 7 and looked up in the tables node, node_revisions and node types and couldn't find where drupal stores the actual body of the node (content).
any body have a clue?
...
How does major sites implement this?
Do they hardcode the rate or look it up each time?
...
When I use substr() I get a strange character at the end
$articleText = substr($articleText,0,500);
I have an output of 500 chars and � <--
How can iIfix this? Is it an encoding problem? My language is Greek.
...
Hello All,
Any body , pls help me how to display or convert tiff image to other format in php.
...
i have a txt file with a list of country's. For my form i just read all the data in a select list line per line with fgets(). And that works fine except for some problems.
1) When i have a country with ¨ on a letter it comes in the list just as a blank.
2) When i put the data in an xml at the end it seams there is a return at the end of...
I'm trying to generate a pdf file from html using dompdf0.6a and that works fine, but then i need to encrypt it for protection, but i get error
FPDF error: Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings'
However if I use older dompdf versions it works fine. I guess it generates newer pdf version that fpdi d...
I have a form that requires the user to enter some information. If they fail to complete the required fields they are re-presented with the form; the top of the page notifying them what fields are required and I've enabled sticky forms (set_value()) so their input is not lost.
I'm using flashdata to display messages to the user (i.e., ...
Hi,
I was writing an web app in php, when i encountered a strange situation. I wish to clear my confusion. To illustrate my problem, consider a web app of this structure:
/
index.php
f1/
f1.php
f2/
f2.php
contents of these files:
index.php:
<?php require_once("f1/f1.php"); ?>
f1.php:
<?php require_onc...
Hi,
I want to do a search by coordinates, i.e. I want to have a function that works like this:
function getLocationsInCircle($lat, $long, $minDist, $maxDist){
//return all the places that are at least $minDist
//kilometers away and no more than $maxDist kilometers away
}
I have a "location" table that stores all location Ids...
I'm inserting some HTML into a MySQL database table. But when I get it back, many characters are mangled. Two specific cases I noted are:
the single quotes are getting converted to �,
code that earlier read class='content-section developer-support' has got converted to developer-support\="" class="\'content-section"
I understand tha...
How I can combine multiple form elements to one validator? I have address information which consists of
Street address
ZIP code
Post office
If I add validator to each of them as streetValidator, zipCodeValidator, postOfficeValidator I end up with problem: There can be foostreet in somewhere (validation ok), 10101 somewhere (validatio...
I have these rewriteRules which work fine:
# 4 params
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ index.php?app=$1&do=$2&what=$3&id=$4 [NC,L,QSA]
# 3 params
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ index.php?app=$1&do=$2&what=$3 [NC,L,QSA]
# 2 params
RewriteRule ^([A-Za-z0-9-]...
hey can some one tell me query using php mysql that how to add date and time when a person logged in and logged out inside a database table.
...
I have file A.php that includes file B.php and C.php. Now both B.php and C.php includes D.php. D.php has some div tags, javascript functions/variables which all conflict. :(
I could copy paste code from D.php to B.php and C.php and rename functions/div tags. Is there a better solution that I could use ?
...