How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

I'm looking to edit a form array so that the subject

Customer Question

Hello,I'm looking to edit a form array so that the subject line ('subject' => 'Home Form Submission') will equal one of the form entries ('custom_U118' for example in the code below). is this possible?Code:<?php
/*
If you see this text in your browser, PHP is not configured correctly on this hosting provider.
Contact your hosting provider regarding PHP configuration for your site.PHP file generated by Adobe Muse CC 2015.2.0.352
*/require_once('form_process.php');$form = array(
'subject' => 'Home Form Submission',
'heading' => 'New Form Submission',
'success_redirect' => '',
'resources' => array(
'checkbox_checked' => 'Checked',
'checkbox_unchecked' => 'Unchecked',
'submitted_from' => 'Form submitted from website: %s',
'submitted_by' => 'Visitor IP address: %s',
'too_many_submissions' => 'Too many recent submissions from this IP',
'failed_to_send_email' => 'Failed to send email',
'invalid_reCAPTCHA_private_key' => 'Invalid reCAPTCHA private key.',
'invalid_field_type' => 'Unknown field type \'%s\'.',
'invalid_form_config' => 'Field \'%s\' has an invalid configuration.',
'unknown_method' => 'Unknown server request method'
),
'email' => array(
'from' => '*****@******.***',
'to' => '*****@******.***'
),
'fields' => array(
'custom_U118' => array(
'order' => 1,
'type' => 'string',
'label' => 'Name',
'required' => true,
'errors' => array(
'required' => 'Field \'Name\' is required.'
)
),
'Email' => array(
'order' => 2,
'type' => 'email',
'label' => 'Email',
'required' => true,
'errors' => array(
'required' => 'Field \'Email\' is required.',
'format' => 'Field \'Email\' has an invalid email.'
)
),
'custom_U104' => array(
'order' => 3,
'type' => 'string',
'label' => 'Company',
'required' => true,
'errors' => array(
'required' => 'Field \'Company\' is required.'
)
),
'custom_U123' => array(
'order' => 4,
'type' => 'string',
'label' => 'Work Address',
'required' => true,
'errors' => array(
'required' => 'Field \'Work Address\' is required.'
)
),
'custom_U108' => array(
'order' => 5,
'type' => 'string',
'label' => 'City',
'required' => true,
'errors' => array(
'required' => 'Field \'City\' is required.'
)
),
'custom_U114' => array(
'order' => 6,
'type' => 'string',
'label' => 'State',
'required' => true,
'errors' => array(
'required' => 'Field \'State\' is required.'
)
),
'custom_U127' => array(
'order' => 7,
'type' => 'string',
'label' => 'Zip code',
'required' => true,
'errors' => array(
'required' => 'Field \'Zip code\' is required.'
)
),
'custom_U95' => array(
'order' => 8,
'type' => 'string',
'label' => 'Country',
'required' => true,
'errors' => array(
'required' => 'Field \'Country\' is required.'
)
),
'custom_U100' => array(
'order' => 9,
'type' => 'string',
'label' => 'Message',
'required' => true,
'errors' => array(
'required' => 'Field \'Message\' is required.'
)
)
)
);process_form($form);
?>
Submitted: 11 months ago.
Category: Programming
Expert:  Steve replied 11 months ago.

Hi there, my name is ***** ***** I can help you with your PHP issues, but I don't really understand your question. Can you chat me back and we can discuss it real-time? Or perhaps elaborate a little more on what you're trying to do? Perhaps include a sample of the form or the full HTML and PHP code? Thanks!

Related Programming Questions