<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Upload Form and Submit - Paypal</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Upload-Form-and-Submit---Paypal-79704</link>
        <description></description>
        <pubDate>Sat, 14 Mar 2026 07:28:12 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Upload-Form-and-Submit---Paypal-79704" rel="self" type="application/rss+xml" />

                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234955#post2234955</link>
          <description><![CDATA[<p>If you're submitting directly to the preview page, then no, but you can still validate on the preview page before displaying it. It's not ideal, but it will work.</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 14:15:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234955#post2234955</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234954#post2234954</link>
          <description><![CDATA[<p>Claire,</p>
<p>I actually figured it out. I had an hidden field on my testdir,php page so I got it all working. My only other question is it still possible to validate the data for required fields on the first page (testdir.php) before it goes to the preview page?</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 14:04:10 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234954#post2234954</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234953#post2234953</link>
          <description><![CDATA[<p>Could it be that I have my php form code on the testdir.php page?</p>
<p><code> ########################################################################################<br />  ##   Form Code<br />  <br />  $schema = loadSchema('dir_listings');<br />  <br />  // save?<br />  $errorsAndAlerts = '';<br />  <br /> <br />  <br />  if (@$_REQUEST['save']) {<br />   <br />   <br /> <br />    <br />    if ($errorsAndAlerts) {<br />    <br />   if (!@$_REQUEST['title'])             { $errorsAndAlerts .= "You must enter your listing name!&lt;br/&gt;\n"; }<br />    if (!@$_REQUEST['state'])            { $errorsAndAlerts .= "You must enter your state!&lt;br/&gt;\n"; }<br />    if (!@$_REQUEST['city'])             { $errorsAndAlerts .= "You must enter your city!&lt;br/&gt;\n"; }<br />    if (!@$_REQUEST['zipcode'])          { $errorsAndAlerts .= "You must enter your zip!&lt;br/&gt;\n"; }<br />    if (!@$_REQUEST['address'])          { $errorsAndAlerts .= "You must enter your address!&lt;br/&gt;\n"; }<br />    if (!@$_REQUEST['summary'])          { $errorsAndAlerts .= "You must choose a description!&lt;br/&gt;\n"; }<br />   if (!@$_REQUEST['category'])          { $errorsAndAlerts .= "You must select a category!&lt;br/&gt;\n"; }<br />  }<br />    <br />   <br />  // save!<br />    if (!$errorsAndAlerts) {<br /> mysqlStrictMode(false); // disable Mysql strict errors for when a field isn't defined below (can be caused when fields are added later)<br />      require_once("../../cmsAdmin/lib/user_functions.php");<br />      $record = array_slice_keys($_REQUEST, explode(', ', 'category, title, address, city, state, zipcode, summary'));<br />      <br />      $record = array_merge($record, array(<br />        'hidden'           =&gt; 1,<br />       'createdDate'      =&gt; mysql_datetime(),<br />        'createdByUserNum' =&gt; intval( @$CURRENT_USER['num'] ),<br />        'updatedDate'      =&gt; mysql_datetime(),<br />        'updatedByUserNum' =&gt; intval( @$CURRENT_USER['num'] ),<br />        'publishDate'      =&gt; mysql_datetime(),<br />  'date'             =&gt; mysql_datetime(),<br />        'reg_listing'      =&gt; 1,<br />  'url_link'        =&gt; 0,<br />        'neverRemove'      =&gt; 1,<br />      ));<br />      <br />    <br /> }<br />  }<br />    <br />  $_REQUEST['preSaveTempId'] = coalesce(@$_REQUEST['preSaveTempId'], uniqid());<br />  <br />?&gt;</code></p>
<p>Could this be causing it?</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 12:49:30 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234953#post2234953</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234952#post2234952</link>
          <description><![CDATA[<p>If it's still submitting data, then either something's gone wrong on the testdir page, or you're not checking for the trigger on the preview page and the form is being processed before being displayed.</p>
<p>On the preview page, you need to make sure that the $_REQUEST data from testdir is coming through, but not being saved just yet, only displayed on the page. That's where you check to see if previewupdate is set and prevent anything from being processed if it's not.</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 12:31:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234952#post2234952</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234951#post2234951</link>
          <description><![CDATA[<p>Are you talking about the form action on the testdir.php page? I have that set to go to the preview.php page.</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 11:32:51 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234951#post2234951</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234950#post2234950</link>
          <description><![CDATA[<p>Like I said before, you have to submit the form on the initial page - testdir.php - to the preview.php page. You can't submit testdir to itself, obviously it's going to go through all the form code you've added at the start.</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 11:10:33 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234950#post2234950</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234948#post2234948</link>
          <description><![CDATA[<p>I am so sorry I am having such a hard time getting this to work. I have done that and it still is not working. It still submits data on testdir.php.</p>
<p>Can you take a look at my files and see what I am doing wrong? </p>
<p>Thanks!</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 09:41:26 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234948#post2234948</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234944#post2234944</link>
          <description><![CDATA[<p>Any hidden field will do. It'll look something like</p>
<p><code>&lt;input type="hidden" name="previewupdate" value="1" /&gt;</code></p>
<p>If you check for this in the form's real submission and don't include it on the initial pass to the preview page, then the preview page will show the summary without submitting the form. Then the user can submit the form for real on this page, because the submission includes the hidden field that triggers the real submission.</p>]]></description>
          <pubDate>Fri, 12 Sep 2014 09:22:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234944#post2234944</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234943#post2234943</link>
          <description><![CDATA[<p>Can you give me an example of what the hidden filed would look like on the preview page?</p>
]]></description>
          <pubDate>Fri, 12 Sep 2014 09:18:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234943#post2234943</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234933#post2234933</link>
          <description><![CDATA[<p>You need a hidden field somewhere on the preview page that isn't passed over from the initial page. When the preview page submits, you'd check for this hidden field before you actually add anything to the database. Hidden fields are pretty good for controlling forms like this.</p>]]></description>
          <pubDate>Thu, 11 Sep 2014 15:09:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234933#post2234933</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234930#post2234930</link>
          <description><![CDATA[<p>How do I set it up <span>without a trigger that causes the real submit</span>? </p>]]></description>
          <pubDate>Thu, 11 Sep 2014 09:11:34 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234930#post2234930</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234929#post2234929</link>
          <description><![CDATA[<p>You're submitting the initial form page to itself - you don't want to do this. When the user fills out the form, it needs to be submitted to the preview page in order to show a summary, but without a trigger that causes the real submit. Then when the user hits the real submit, the preview page submits to itself and includes the trigger that does the record storing stuff.</p>]]></description>
          <pubDate>Wed, 10 Sep 2014 14:46:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234929#post2234929</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234928#post2234928</link>
          <description><![CDATA[<p>That is what I thought I did with the examples I attached (I have other pages working except for main form page) but it still submits on the first form page. Can you look at that page (testdir.php) and tell me what I am doing wrong there?</p>

<p>Thanks!</p>
]]></description>
          <pubDate>Wed, 10 Sep 2014 14:17:39 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234928#post2234928</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234927#post2234927</link>
          <description><![CDATA[<p>Yeah - just use a form on the first page to get the info, submit it to the preview page, and on that page you can display a summary to the user and load everything from the $_REQUEST array into a number of hidden fields in a new form with a button that says 'Accept' or whatever. Then when the user clicks that, that's when you submit it for real.</p>]]></description>
          <pubDate>Wed, 10 Sep 2014 14:09:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234927#post2234927</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234924#post2234924</link>
          <description><![CDATA[<p>Claire I figured out a different way to save the template id so I could redirect to paypal. The main issue I am having now is that I want to set up the form to go to a preview page where the user can preview and confirm data before submitting. Is there a way to do this so the data doesn't get submitted on the main page form  but get submitted on the the preview page?</p>]]></description>
          <pubDate>Wed, 10 Sep 2014 08:49:09 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234924#post2234924</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234911#post2234911</link>
          <description><![CDATA[<p>Hi April</p>
<p>I think I'd need more info as to what you're looking to do here, but Paypal does provide HTML button templates in order to pay for services. Perhaps that's what you need instead?</p>
<p><a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_singleitem-intro-outside" rel="nofollow">https://www.paypal.com/us/cgi-bin/webscr?cmd=_singleitem-intro-outside</a></p>
]]></description>
          <pubDate>Tue, 09 Sep 2014 17:13:07 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234911#post2234911</guid>
        </item>
                <item>
          <title>Upload Form and Submit - Paypal</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234906#post2234906</link>
          <description><![CDATA[<p>I was wondering is there a way to make the upload forms go to a paypal page to pay for services upon submit? I know the forms use a pre save template id as the action on the form. </p>
<p>Thanks!</p>
<p>April</p>
]]></description>
          <pubDate>Tue, 09 Sep 2014 07:49:22 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234906#post2234906</guid>
        </item>
              </channel>
    </rss>
  