Find Jobs
Hire Freelancers

Simple PHP/JS Question-Answer

$30-250 USD

Imekamilika
Imechapishwa over 11 years ago

$30-250 USD

Kulipwa wakati wa kufikishwa
using just basic JS no Jquery... We have a form that posts to another website outside of out control (to capture email address). when the user submits the form the data is checked with a js function to validate the data... ex: validate(form){ var from = [login to view URL]; if ([login to view URL] === 0) { alert("Please Enter your Email Address."); return false; } The form posts to an external site (so we have no control over it) something like [login to view URL] The problem is, the form is optional, and if it is filled out we want it to post the data as entered to the external site as normal. However, if there is no data (someone just clicks the submit button) we want the site to redirect the user to a different page. Tried, if (from.length===1){ [login to view URL] } (for testing to see if a [login to view URL] would work) That is not working. Probably simple for someone knowledgeable. Recap. Form submits to external site, if user enters nothing then redirect to a different site/url.
Kitambulisho cha mradi: 4249372

Kuhusu mradi

pendekezo 1
Mradi wa mbali
Inatumika 11 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
Imetolewa kwa:
Picha ya Mtumiaji
Hi, i can do it for you, right now !
$30 USD ndani ya siku 0
4.9 (293 hakiki)
6.4
6.4

Kuhusu mteja

Bedera ya UNITED STATES
Geneseo, United States
5.0
5
Njia ya malipo imethibitishwa
Mwanachama tangu Apr 30, 2007

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.