/    Sign up×
Community /Pin to ProfileBookmark

How to hide the modal box after form submission using php?

I have a page which return to the same page after form submission but it shows the modal box form , I want to hide the modal box when the user come page to the same page.
I had made the page using angular js and the website link is:
[https://www.youstable.com/web-hosting-company-in-kanpur](https://www.youstable.com/web-hosting-company-in-kanpur)

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@shobhaauthorJan 03.2020 — &lt;div class="modal" id="contactform" role="dialog" aria-labelledby="myModalLabel"<br/>
aria-hidden="true"&gt;<br/>
&lt;div class="modal-dialog" role="document"&gt;<br/>
&lt;div class="modal-content"&gt;<br/>
&lt;div class="modal-header text-center"&gt;<br/>
&lt;h4 class="modal-title w-100 font-weight-bold"&gt;Fill Form And Start A Trial&lt;/h4&gt;<br/>
&lt;h5 class="modal-title"&gt;Call Us Now : +919616782253&lt;/h5&gt;<br/>
&lt;/div&gt;<br/>
&lt;form name="userForm" method="post" action="contact.php"&gt; &lt;div class="modal-body mx-3"&gt;<br/>
&lt;div class="md-form mb-5"&gt;<br/>
&lt;i class="fa fa-user prefix"&gt;&lt;/i&gt;<br/>
&lt;input type="text" name="inputName" id="inputName" class="form-control validate" placeholder="Your Name" required=""&gt;<br/>
&lt;/div&gt;&lt;div class="md-form mb-5"&gt;<br/>
&lt;i class="fa fa-envelope prefix"&gt;&lt;/i&gt;<br/>
&lt;input type="email" name="inputEmail" id="inputEmail" class="form-control validate" placeholder="Your Email" required=""&gt;<br/>
&lt;/div&gt;

<i> </i><CODE> &lt;div class="md-form mb-5"&gt;
<i> </i> &lt;i class="fa fa-phone prefix"&gt;&lt;/i&gt;
<i> </i> &lt;input type="text" name="inputPhone" id="inputPhone" class="form-control validate" placeholder="Phone Number" required=""&gt;
<i> </i> &lt;/div&gt;&lt;div class="md-form mb-5"&gt;
<i> </i> &lt;i class="fa fa-map-marker prefix"&gt;&lt;/i&gt;
<i> </i> &lt;input type="text" name="city" class="form-control validate" placeholder="City" required=""&gt;
<i> </i> &lt;/div&gt;
<i> </i>
<i> </i> &lt;div class="md-form"&gt;
<i> </i> &lt;i class="fa fa-pencil prefix"&gt;&lt;/i&gt;
<i> </i> &lt;textarea type="text" id="description" name="description" class="md-textarea validate form-control" rows="3" placeholder="Write your requirement for web hosting" required=""&gt;&lt;/textarea&gt;
<i> </i> &lt;/div&gt;

<i> </i> &lt;/div&gt;
<i> </i> &lt;div class="modal-footer d-flex justify-content-center"&gt;
<i> </i> &lt;button class="btn btn-unique" name="insert" type="Submit" value="Insert"&gt;Send &lt;i class="fa fa-paper-plane-o ml-1"&gt;&lt;/i&gt;&lt;/button&gt;
<i> </i> &lt;/div&gt; &lt;/form&gt;
<i> </i>&lt;/div&gt;</CODE>
&lt;/div&gt;<br/>
&lt;/div&gt;<br/>
&lt;script src="<URL url="https://code.jquery.com/jquery-1.11.2.min.js%22%3E%3C/script">https://code.jquery.com/jquery-1.11.2.min.js"&gt;&lt;/script</URL>&gt;<br/>
&lt;script type="text/javascript"&gt;setTimeout(function() {<br/>
$('#contactform').modal();<br/>
}, 1500);<br/>
$("#contactform").modal({<br/>
backdrop: 'static',<br/>
keyboard: false});&lt;/script&gt;&lt;script src="<URL url="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js%22%3E%3C/script%3E%3Cscript">https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"&gt;&lt;/script&gt;&lt;script</URL> src="<URL url="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js%22%3E%3C/script">https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"&gt;&lt;/script</URL>&gt;
×

Success!

Help @shobha spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...