Type: Posts; User: maxwell55
Search took 0.01 seconds.
I have a cms that uses a textarea form field configured with Tinymce.
The user inserts data as follows -
$pageText = trim(htmlspecialchars($_POST['message']));
This stores the data in the...
I am trying to create a CMS that allows users to upload a single file, and
simultaneously store information about the uploaded file in a database table.
The main webpage loads an upload class...
Hi, I am trying to follow a tutorial on how to access a txt file via ajax,
however when the file is loaded basically nothing happens, even though I have
alerts set up to display if things go wrong....
I would like to add a php hit counter to my web site's entry page.
I know I can do this no problem by changing the name of my entry page
from index.html to index.php and adding the necessary...
I am trying to use a CGI (Perl) script that searches a product catalogue, however when run the following error displays -
Can't use an undefined value as an ARRAY reference at...
All output now properly spaced.
preg_replace('/\s*[\r\n]+/', ' ', $_POST['sender_message']);
preg_replace('/\s*[\r\n]+/', '', $_POST['sender_message']);
And still got - hellohellohello
I have used the following code to remove new lines etc from a textarea.
$message = $_POST['sender_message'] = preg_replace("/\r|\n/", "", $_POST['sender_message']);
My feedback-form is now working ok using the following code -
Code on form processing page
$myvar = "Thank you for your feedback!";
$myvar2 = "Message not sent. Please, notify site...
As a beginner,
I'm thinking unless the feedback-form page is accessed via the php script page
$name = $_GET['myvar'];
will not contain anything so is undefined,
and if it has been access...
My page appears to be working ok now, the variables are being passed from the form processing page
to the feedback-form page and the alert shows when the form is submitted as required.
I tried passing the variable as suggested however received a 403 error!
Can you please tell me where I am going wrong?
PHP form processing page send-mail.php code
$myvar = "Thank you for...
$php_var = "Hello world from PHP";
var js_var = "<?php echo $php_var; ?>";
My web page has a survey form that sends its results to a php page for processing.
When I tested the script earlier in...
I am trying to build a survey web form with five groups of HTML radio buttons,
when the form is submitted the values are emailed via the php mail() function,
there is no database involved.
Hi, thanks for replying.
I followed the advice given at:
I moved all of my...
Hi, I am creating a website which currently has four pages.
Every time I access three of the pages the browser window goes completely white
for half a second before...
Many thanks for replying!
As suggested I downloaded the module from cpan as it wasn't available in the Activeperl package manager.
I am sure it will be invaluable to me. Also the syntax used...
I am having a bit of a problem working out operator precedence in the follow expression, the output of which is 0.
I realize ++$value2 is incremented immediately so both ++$value2s should now...
Thanks for replying I understand things better now!
I have a rough grasp on OO perl however,
I would like someone with perl experience to give me an explanation of what the following code is doing?
I have highlighted in red the lines I would...
I still don't understand how y-- can equal 6 when it originally contained 5
If I run the following code in firebug the output equals 0
y = 5;
x = 0;
z = 1;
newnum = y++ + ++x + x++ + z++ - z++ - y--;
If I test x, y and z on their own in firebug the output is -
Thank you for replying.
If I want to add say another 2 images to preloader do I change this i<=3; to this i<=5;