Jump to content
alechielke

Multi-line _IEFormElementSetValue

Recommended Posts

alechielke

Hey,

I'm trying to use _IEFormElementSetValue to set an inputbox to a multi-line string (I'm not good at explaining I know).

I want it to look something like this:

My problem:

(insert variable here)

My solution:

(insert variable here)

The function picks the correct input box, but I can only seem to have it send one line. I was able to do this in the past with send by just sending an enter whenever I wanted a new line, but now I want the script to be able to run in the background, so this is no longer an option. Can anyone help?

Share this post


Link to post
Share on other sites
alechielke

Here's what I've got so far

Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0)
Local $newform = _IEFormGetCollection($oIE, 0)
Local $description = _IEFormElementGetCollection($newform, 1)
_IEFormElementSetValue($description, "test"&"test");this is where the multi-line string goes

I'm trying to improve my knowledge of a few programming languages, so I made a little php page that submits problems and solutions to a database.

Share this post


Link to post
Share on other sites
MattHiggs
1 minute ago, alechielke said:

Here's what I've got so far

Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0)
Local $newform = _IEFormGetCollection($oIE, 0)
Local $description = _IEFormElementGetCollection($newform, 1)
_IEFormElementSetValue($description, "test"&"test");this is where the multi-line string goes

I'm trying to improve my knowledge of a few programming languages, so I made a little php page that submits problems and solutions to a database.

Try this:

Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0)
Local $newform = _IEFormGetCollection($oIE, 0)
Local $description = _IEFormElementGetCollection($newform, 1)
_IEFormElementSetValue($description, "test" & @CRLF & "test");this is where the multi-line string goes

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.