Jump to content

Recommended Posts

I am trying to make a form that Will generate notes for people that use it.

The form as fields that you input the data in and then I want to be able to hit generate and have it pull the info.

What I have so far

<form action="" method="get">
    <table> <b>Section 1 - Account Information</b>
        <tr>
            <td>Caller's Name</td>
            <td><input id="callername" type="text" /></td>
        </tr>
        <tr>
            <td>Authorized Users</td>
            <td><input id="authusers" type="text" /></td>
        </tr>
        <tr>
            <td>Can be reached number (CBR)</td>
            <td><input id="cbr" type="text" /></td>
        </tr>
        <tr>
            <td>Reason for Calling</td>
            <td><input id="rfc" type="text" /></td>
        </tr>
        <tr>
            <td>Promotional Code (If Given)</td>
            <td><input id="promocode" type="text" /></td>
        </tr>
        <tr>
            <td colspan="2" style="height: 88px"><textarea id="gen1" style="width: 342px; height: 91px"></textarea></td>
        </tr>
        <tr>
            <td><input id="genb1" type="button" value="Generate"></td>
        </tr>
    </table>
    </form>

In the text area... I want it to pull the information... for example

"The caller's name is <textfield> the Authorized Users are <textfield>

They can be reach at <textfield>. They called to <textfield>. Promotional code was <textfield>"

 

I also want it to leave something out like "Promotional code was <textfield>" if it was left blank...

 

Any help would be great

Link to comment
https://forums.phpfreaks.com/topic/74777-solved-from-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.