Jump to content

Question

Posted

Hello everyone. 

 

Basically I have a script which on my old billing system worked by copying to url for the billing system when running a domain search. 

 

This meant for example the customer would search for the requested domain from my homepage using a search box this would then show what was available from the requested search on the billing system. 

 

The way it worked for example was say you wanted "yellow.com" the search would write a command showing "mywebsite.com/domain/search/yellow.com which would then show the availability on my billing system.

 

The problem I have with Blesta is that it doesn't show a searching url it masks it and keeps the same url. 

 

I have made a photo below hopefully explains what I mean.

 

Thanks

post-10521-0-16407900-1434819959_thumb.j

post-10521-0-56593700-1434819971_thumb.j

 

4 answers to this question

Recommended Posts

  • 0
Posted

As I understand He want to put url in  his form action  ,so user is redirected when click on search to blesta domain search form.His problem is because there is no query in Blesta Url (method POST is used) and if He put existing url as action, user WILL be redirected but only to empty search form.

 

Thats exactly what I mean Nelsa and I didnt have much luck with the API :(

  • 0
Posted

Well I can write form for you that will work in few minutes but problem is csrf token will change after few hours and it will not work,in practice you will have to disable csfr token or change it every day.

Maybe blesta staff have other solution,I don't see better way than disable csfr or change manualy csfr  in your form every day, here is example with csfr,if you disable it than just delete second <input> .Now if you want test it first or don't want to disable CSFR ,you can see csfr token using broswer inspector in devloper tools.

 

 

<form action="https://yourorder.form.url" method="post">

<input name="_csrf_token" value="your-csfr-token" type="hidden">

Domain: <input type="text" value="" placeholder="yourdomain" size="20"> <select name="tlds[]">

<option name="tlds[]" value=".com" id="t.com">.com</option>

<option name="tlds[]" value=".org" id="t.org">.org</option>

<option name="tlds[]" value=".net" id="t.net">.net</option>

<option name="tlds[]" value=".in" id="t.in">.in</option>

<option name="tlds[]" value=".co" id="t.co">.co</option>

<option name="tlds[]" value=".biz" id="t.biz">.biz</option>

<option name="tlds[]" value=".info" id="t.info">.info</option>

</select>

<input name="lookup" type="submit" value="Search">

 

 

Thankyou Nelsa I will try and have a go at this. 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...