Make an form Editbox text an hyperlink text

Issues related to forms.
Post Reply
User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Make an form Editbox text an hyperlink text

Post by dirkatsma » Mon Mar 12, 2018 3:43 pm

Hello to everyone

Can some one help me to make a text Like,
in a form Editbox as hyperlink( https://www.google.nl)

I created the form with mysql connector.

Friendly regards,

Dirk Atsma
Dirk Atsma

User avatar
Pablo
 
Posts: 14910
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Make an form Editbox text an hyperlink text

Post by Pablo » Mon Mar 12, 2018 4:05 pm

Do you mean that you want the user to enter an URL in the editbox?
Can you please be more specific?

User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Re: Make an form Editbox text an hyperlink text

Post by dirkatsma » Mon Mar 12, 2018 4:22 pm

Hello Pablo,

The link adres is allready ïn the form Editbox like http://www.google.nl as text.
But i want the tekst become as an hyperlink. To link to an folder and display the image

Friendly regards
Thanks for fast response
Dirk Atsma
Dirk Atsma

User avatar
Pablo
 
Posts: 14910
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Make an form Editbox text an hyperlink text

Post by Pablo » Mon Mar 12, 2018 4:28 pm

As far as I know it is not possible to create a link from an editbox.
HTML does not support this. You will need to use a standard text for that.

User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Re: Make an form Editbox text an hyperlink text

Post by dirkatsma » Mon Mar 12, 2018 4:50 pm

web adres
https://www.realsale.nl/klusseperprov.php

look at the rightside under, there is the textbox with the link as text.

Thanks
Dirk Atsma

User avatar
Pablo
 
Posts: 14910
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Make an form Editbox text an hyperlink text

Post by Pablo » Mon Mar 12, 2018 5:54 pm

I'm sorry I do not think you can make a link of an editbox.

This is what the W3C validator says about it:
Error: The element <input> must not appear as a descendant of the <a> element.
which indicates that is is not valid.

User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Re: Make an form Editbox text an hyperlink text

Post by dirkatsma » Mon Mar 12, 2018 6:50 pm

Pablo thank you for all the effort.
The web builder 12.4 with his extensions make me find a way to do it a different way

Thank you
Best regards.

Dirk Atsma
Dirk Atsma

User avatar
Pablo
 
Posts: 14910
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Make an form Editbox text an hyperlink text

Post by Pablo » Mon Mar 12, 2018 7:04 pm

The extension was not designed to create links.
This can only be implemented with custom code.

User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Re: Make an form Editbox text an hyperlink text

Post by dirkatsma » Mon Mar 12, 2018 8:00 pm

Oke,
I will experiment with custom code (php, sql, javascript,html)PFFFFFFF
but i wil give it a try.

Best regards

Dirk Atsma
Dirk Atsma

User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Re: Make an form Editbox text an hyperlink text

Post by dirkatsma » Tue Mar 13, 2018 8:07 pm

Hi Pablo,
Found this link, is there any usefull code on to use for the inputbox text to make as hyperlink.
I think the one with the <DIV> part.

What do you think?

Greetings, Dirk Atsma
Dirk Atsma

User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Re: Make an form Editbox text an hyperlink text

Post by dirkatsma » Tue Mar 13, 2018 8:08 pm

Dirk Atsma

User avatar
Pablo
 
Posts: 14910
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Make an form Editbox text an hyperlink text

Post by Pablo » Tue Mar 13, 2018 9:40 pm

The code in the link is not valid. I did already try that for you and the W3C validator gave this error:
Error: The element <input> must not appear as a descendant of the <a> element.
So, it may work in some browsers, but it is not valid HTML code.

You will need to implement a function to write the link into a standard text box.

Please note that I cannot provide support on programming. For me it will also take a lot of time to figure out how to do this.

User avatar
dirkatsma
 
 
Posts: 54
Joined: Fri Jun 30, 2017 10:25 am
Location: Holland (Breda)
Contact:

Re: Make an form Editbox text an hyperlink text

Post by dirkatsma » Thu Mar 15, 2018 11:20 pm

Hello Pablo,

I now get what is simular of what i needed.
View the page link to look what i wanted it to do and klik the button(klus foto)

https://www.realsale.nl/klusseperprov.php

The Editbox in de form field is hidden (with the text link)
A link wil now show and view the picture in de folder on the server.

This works fine for me.

Greetings, Dirk Atsma
Dirk Atsma

Post Reply