|
Currently I've got a PHP page query.php with a form that presents a list of countries with a submit button:
Countries [] nation1 [] nation2 [] nation3 [] nation4 SUBMIT
they're checkboxes to the same array, and the form references the page <form method...
Started by Andrew Heath on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
AJAX for usability, but make sure....
PHP's json_encode() and json_decode() are great.
I'd recommend using JSON to encode the data.
*/ <form action="movie-query.php" method="POST" name="actorForm"> <?php include the movies.
|
|
Is it possible to do it with PHP?
Best with a simple demo!
Answer Snippets (Read the full thread at stackoverflow):
Try this tutorial: http://www.tizag.com/phpT/fileupload.php
HTML:
<form....
Http_post_fields() looks promising.
See this tutorial on how to upload files with php.
See handling file uploads in the PHP manual.
Yes, it is possible.
|
|
I am looking for free/opensource php form email script/class. The main requirement is that the PHP (logic) and the HTML and CSS (design) are separated, i.e. i can create forms as short or as long as i need with all kinds of inputs/fields and the script...
Started by ritch0s on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It's not very hard to do this with php but there are nice methods you can use without writing code/support/bin/answer.py?hl=en&answer=87809
as an example, i created a form with the google docs://spreadsheets.google.com/pub?key=t%5FivBxAmfmLm....
|
Ask your Facebook Friends
|
I'm using the jQuery Form plugin to submit AJAX requests. It's a simple contact from using this PHP script: http://pastie.org/725652 - the only validation happens inside the PHP.
Here's my Javascript code to trigger the whole thing:
$('#contactform')....
Started by Justine on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
HTML:
<form id.
You must include the parameters in which are the response from PHP:
EDIT:
try with these changes, in this example I'm separating the message "loading" with the response message.
|
|
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'm using Ajax via jQuery for the first time ever. I have an html input and when a user clicks it and types something and then the focus blurs, i'm using jquery to call a php script to validate the user's input.
I'm trying to figure out how to take the...
Started by Catfish on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There is one line that looks weird:
$("img").removeClass('thumb').addClass('thumbV');
means that you remove the class thumb and... .
At this time, I cannot see if there is a better way, but what you have now looks fine .
I would keep what you have right now.
|
|
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.
|
|
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.
|
|
How can I send an email with attachments from a PHP form?
Started by Nathan Long on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you have....
From each file using built-in PHP functions.) The PHP Once the form is submitted, any files uploaded form needs to have this attribute: enctype="multipart/form-data" You need at least one field like <.
|