I am trying to make a form where members of a club can select clothing sizes and send it to the secretary. I am using formtoemail for this. The formtoemail and order form work perfectly from one website hosting but if I move these files to where I need them on another hosting :’(all it sends is a blank form! Any ideas what I could check, I am a complete novice with php stuff!
I was driving home last night and my car stopped, any idea what caused it?? :o
Ok, so i was being sarcastic but you get my drift, how can anyone possibly shed any light on the situation without a little information - other than ‘it broke’
Post up some code, let’s see what we can do to help.
Red
Yep, a fully deserved slap on the wrist! Sorry, hope this helps to give you some ideas on where I’m going wrong.
[php]<?php
session_start();
if(isset($_SESSION[‘submitted_form_values’])){extract($_SESSION[‘submitted_form_values’]);}
?>
Life Care RadioPlease fill out and send the form below.
Please complete your requirements and click the Send button.
<?php
if(isset($_SESSION[‘formtoemail_form_errors’]))
{
print “<div style=“color:#ff0000”>”;
foreach($_SESSION[‘formtoemail_form_errors’] as $form_error_value){print “” . stripslashes($form_error_value) . “
”;}
print “
unset($_SESSION[‘formtoemail_form_errors’]);
}
if(isset($_SESSION[‘submitted_form_values’])){extract($_SESSION[‘submitted_form_values’]);}
?>
Polo Shirt - £10.80
S 35/37 M 38/40 L 41/43 XL 44/46 XXL 47/49 XXXL 50/52 |
Fleece - £00.00
S 38 M 40 L 42 XL 44 XXL 47 XXXL 50 |
Waterproof Jacket - £00.00
S 38 M 40 L 42 XL 44 XXL 47 XXXL 50 |
Waterproof Trousers - £00.00 (Waist Size)
S 30/32 M 33/34 L 36/37 XL 38/40 XXL 42/44 XXXL 46/48 |
if(isset($_SESSION[‘submitted_form_values’])){unset($_SESSION[‘submitted_form_values’]);}
?>[/php]
Could also be the PHP version. There are some minor differences in supported syntax.
Check what version you have on the server where it works and what is the version on the other server and if they are different, please ask the hosting support administrators to change the PHP version, unless you have any other websites there that requires it.
If they don’t offer such a feature, take look into syntax differences between the versions and try to adjust the code a little bit.
No worries, glad you took it tongue in cheek as i meant it.
I could be wrong here but you are declaring xhtml (strict)
then you declare xml, then, and I believe here may be the problem, you have another tag…
remove that tag, let me know if it sorts it out…
Red
Sorted! Thanks very much for your help and guidance.
No worries, happy to help