|
My knowledge of php is not good and I need help.
I have this php form but I don't know how to add a CAPTCHA mechanism.
How do I achieve this?
Started by php form on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I did one for a company with that
http://greenlee.com/Service.
But if you just want ot do it in PHP look at the GD libs in PHP to generate the images.
Check out recaptcha
Recaptcha is probably best.
|
|
To avoid "monster characters", I choose Unicode NCR form to store non-English characters in database (MySQL). Yet, the PDF plugin I use (FPDF) do not accept Unicode NCR form as a correct format; it displays the data directly like:
這個...
Started by Shivan Raptor on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
(but for my case, I use another plug.
To install this plug-in, just include it in PHP.
Search on SO for questions regarding PHP, MySQL and UTF-8, there are a few that list the possible fonts needed.
|
|
I have noticed that in your form theme file, whatever-form.tpl.php , when you omit
<?php drupal_render($form); ?>
the only parts of the form that are rendered is what you specified - so I can also omit all of these lines:
<?php $form['title']...
Started by rlb.usa on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So no, submission and validation and such will not work, and the form probably....
But to answer your question, removing drupal_render($form) will probably cause your entire form to not show up.
Above should not be in the theming layer.
|
Ask your Facebook Friends
|
How do I make an application form in PHP that sends an e-mail using the mail() function?
Started by arpit on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Beyond that, we'll need to know what you're having ... .
<?php $message = "This is my e-mail message."; mail.
php // If our form has been submitted if ($_POST["submit"]) { // Gather up some values $namePHP mailing at its simplest.
|
|
HI ,
Can any one help
I need to direct the user once they have submitted the form to another page
How could I do this ?
<form enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
Started by Oliver Bayes-Shelton on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want the POST;!-- form.html --> <form method="post" action="postHandler.php"> <input type="text" name page again as a GET you can do....
Specify the page in the action="" attribute of the form (don't use PHP_SELF).
|
|
I have a PHP file that spits out a form. I want to call this PHP file server-side, (currently using "include"), fill it in, and submit it.
This is better so I don't have to meddle around with the actual form PHP, just deal with the presentation layer ...
Started by Jeremy Rudd on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You won't....
Otherwise you can emulate the POST variables and call the form's action from your outside script.
So you want to submit a form to yourself? Sounds like CURL will be the way to do it, but you'd be creating another HTTP session.
|
|
How can I do a php and xhtml form that allows users to upload images and on submitting all the data is send to my e-mail?
Started by Joana on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
form" action="<?$_SERVER["PHP_SELF"];?>"> <p><input type="file" name="image_file PHP site itself also includes some good information on the recommended practices and pitfalls the uploaded file."; } } ?> <....
|
|
I have a form in an ASP file that I would like to pass to a php script for processing. Is this possible? I don't see why it wouldn't be, but I tried a dummy form on an asp file, with the action="phptest.php" and when submitting it just reloads the form...
Started by Brian Griffin on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Manually create your HTML ....
Let:
[A] = ASP script [B] = HTML form [C] = PHP script Insofar as I understand script.
The data being passed to your PHP script will be coming from an HTML form these individually.
TEXTBOX etc.
|
|
In PHP, reference variables modify both when 1 or the other is changed.
New classes are formed by implicit references, but modifying the extension does not modify the parent.
Is this by PHP's design, or are they different kinds of "references?"
Started by Grant on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To get around this, you had to ....
In PHP 4, objects would be implicitly cloned when assigning.
$a =& $b; makes $a a reference to $b, $a will always have the same value as $b .
( ) on $child itself;
References in PHP are a weird construct.
|
|
Hi, I am done with validation using javascript for a form in PHP.
When is there any need for PHP validation?
javascript validation in itself ensures that all the fields are filled up. Is there a possibility to check the valid format of the inputs using...
Started by Sachindra on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Be disabled form can be submitted to your server by a "bad guy" from a custom page so both are required IMHO
In general, a user has control over what data is submitted to a form handler, so you need for a trip to the server and page reload....
|